Opened 4 years ago
Closed 4 years ago
#5646 closed defect (fixed)
format.h is bugged
Reported by: | Silier | Owned by: | adrian |
---|---|---|---|
Priority: | Must Have | Milestone: | Alpha 24 |
Component: | Build & Packages | Keywords: | |
Cc: | Patch: | Phab:D2613 |
Description (last modified by )
fmt::internal::CharTraits<char>::convert': cannot access private member declared
that basically means one cannot use wstring and pass it to LOGWARNING or similar calls, where conversion is needed.
Issue have been fixed, but we have outdated version: https://github.com/fmtlib/fmt/issues/117 File itself is available here: https://github.com/fmtlib/fmt/blob/master/include/fmt/format.h
One cannot simply download and replace the file, because there have been done modifications to our version of file, so they need to be done in new version of file too.
Code to reproduce:
LOGWARNING("Passed wrong value %ls", L"wstring");
Change History (10)
comment:1 by , 4 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
follow-up: 4 comment:2 by , 4 years ago
comment:3 by , 4 years ago
Description: | modified (diff) |
---|
comment:4 by , 4 years ago
Replying to adrian:
@Angen could you say how to reproduce this bug?
Sorry it took me so long, I have updated ticket with example.
comment:5 by , 4 years ago
Description: | modified (diff) |
---|
comment:6 by , 4 years ago
@Angen I updated fmt, preserving previous changes. Everything is compiling, tests are passing. What is the next step? This will be my first commit to the 0ad codebase :)
comment:7 by , 4 years ago
Thank you for working on this :) You would need to create an account here https://code.wildfiregames.com/ and upload there your diff.
For more detailed steps take a look here: https://trac.wildfiregames.com/wiki/SubmittingPatches https://trac.wildfiregames.com/wiki/Phabricator
also do not forget to add yourself to the credits: binaries/data/mods/public/gui/credits/texts/programming.json
comment:9 by , 4 years ago
Patch: | → Phab:D2613 |
---|
@Angen could you say how to reproduce this bug?
I put LOGWARNING(L"warning") and LOGWARNING(std::wstring("warning")) in some file and I received completely different compiler errors like followings: