New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix some warnings #13909
fix some warnings #13909
Conversation
Why is '°' sign replaced with text? The patch seems as a bunch of random changes without any explanation. Care to explain them? |
It fixes some warning issues on msvc. Degree sign shows tofu on my system and bump warning
The string quote prevents from string REPLACE argument number problem(my versoin is cmake 3.26.0 rc6). It will fail when I make a clean and rebuild. |
Huh... I though Microsoft abandoned whole concept of code pages decades ago and they are now used by legacy apps only. Btw, why does compiler does not complain to other assignments to +1 to cMake change. |
The suffix should be |
I'd argue that the file's encoding is wrong, not that the degree symbol should be replaced -- I don't think we should have any |
That is local issue, git has no concept of encoding unless something like UTF-16 is used in which case it detects it as a binary blob. |
It is a daily editor problem in windows. Visual Studio always saves files into a lot of local encodings except utf-8 depending on system locale config, but the other editors always open file with default encoding utf-8. One solution is only using ascii in code, which I think is the best solution, so I change the sign to degree. Another solution is adding compile flag I would preserve the encoding warning, because there is no universal rule for the problem in FreeCAD. |
That sounds reasonable. UTF-8 is standard for at least a decade now, so it is probably not worth doing anything on behalf just one IDE of many. |
a cmake string quotes
a float mark
a character replacement