-
Notifications
You must be signed in to change notification settings - Fork 155
convert legacy encoding (ISO-8859) to UTF-8 #437
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
Conversation
|
Hi. For what it's worth, the farptr.bi symbols look like Mojibake. They should probably be interpreted as box drawing characters as in Codepage 850: (I also converted 8-tabs to spaces in the middle row, and since it seemed one character short, added another one before the text to better centralise it.) It might also be worth just using ASCII single-quotes in stabs.bi. |
Good catch, it looks much better that way. FYI, this is what I saw with the patch - it was a little better
Is that what you see in the original or you mean as general cleanup? |
95829ae to
dc9d7aa
Compare
|
Thanks. |
1643d12 to
562eaca
Compare
Files in ISO-8859-15, CP-1252 and CP-850 encoding are not always displayed correctly. Convert them to UTF-8 to make sure they're displayed correctly and to avoid warnings when packaging FreeBASIC for debian
|
I replaced that along with reconverting 'examples/graphics/OpenGL/NeHe/lesson22.bas' from CP-1252 instead of ISO-8859 as it didn't look quite right. |
|
Even though fbc can handle all the encodings, anything that is code page dependent is going to be a display problem eventually somewhere. And UTF-8 is going to be a display problem on any platform that doesn't support it. Agree, source for the fbc compiler itself and build tools should probably be plain ASCII, that way editing the files has near zero dependency on author tools used across multiple platforms. So agree, using the plain single quotes in The include files and example files probably ok as UTF-8 since those files don't get changed much, and fbc can handle the encodings. Except |
Thanks for converting it to plain ASCII characters. I picked UTF-8 as the universal encoding, but forgot that maybe DOS doesn't support it. |
Dang it. I thought my editor removed the BOM. Thanks for spotting this. I'll commit a fixup soon. |
Files in ISO-8859-15 or similar encoding are not always displayed correctly. Convert them to UTF-8 to make sure they're displayed correctly and to avoid warnings when packaging FreeBASIC for debian.
Note, the difference in encoding may not be detectable on github or when viewing a patch containing both.
Only when you open the old vs. new files separately.