-
Notifications
You must be signed in to change notification settings - Fork 11
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
Shoud tos.hyp move to UTF-8? #95
Comments
Theoretically, there are several possibilities:
Actually, i would prefer to leave them in current encoding. It's github's fault if it cannot cope with different encodings, and it is only a matter if you try to edit it through the web interface. You can alway clone the repo and edit it locally instead. |
True. However I'm asking on behalf of other people who can read & spot errors but don't feel up to setting up git and branches etc. Github allows you to easily edit a file and create a PR out of it without any hassle. So that's my main motivation here. |
PS: the files are encoded in atari characterset, not cp1252. PPS.: if you want you can try one or the other option with single files. The input encoding can be changed at any time. Just make sure you set it back at the end of the file, or before inclduing any other file. PPPS.: unconditionally transcoding the files is a no-go. That will break any source where strings are encoded in the local platforms encoding. Beside that, as mentioned above, they are not encoded in cp1252. |
I guess Github's encoding detection doesn't count with atari encodings. ;)
I guess it's their policy - you want to have a web content hosted by us, then it must be in UTF-8, period. I don't blame them but sure, it doesn't make our atari life easier. |
Edit: there would be another option: use UDO macros for all non-ascii characters, like is done Line 114 in 82c4e0e
|
Its not only a matter of Atari. Any windows program that is not using wide unicode character strings is also affected. |
I've just changed a bunch of files to use macros for the non-ascii characters. But i encountered another problem: those characters also appear in verbatim environments (listings, examples etc.), and are not replaced there. So after conversion, you carefully have to check the new output, and that is quite a lot of work. |
When one tries to edit and/or fork+PR of a tos.hyp file, the following message can be observed:
We’ve detected the file encoding as windows-1252. When you commit changes we will transcode it to UTF-8.
Github wants to have all web-based edits in UTF-8, that applies also to websites (I had to re-encode whole https://github.com/mikrosk/ct60tos/tree/gh-pages in that way).
If we did that, we would need to re-encode the files back into Atari encoding before compiling the hypertext.
The text was updated successfully, but these errors were encountered: