Skip to content
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 html encodings #3225

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

kdashg
Copy link
Contributor

@kdashg kdashg commented Mar 5, 2021

More non-utf8 files in conformance-suites snapshots.
These make it trickier to operate on these snapshots, even though we shouldn't really be touching them much.
This is minimally invasive, and should be the correct equivalent to what we had before, so I'd like to take it against the snapshots anyway.

@kenrussell thoughts?

Some of these aren't even valid utf-8, and python's open(foo,'r').read()
raises UnicodeDecodeErrors.
I think these files were Windows-1252, but it's hard to tell.
uniform mat4 �m�����`�r�b�h�h;
// ‚±‚ê‚Í‚`‚r‚b‚h‚h‚Å‚Í‚È‚¢‚Å‚·B
// ‚s‚ˆ‚‰‚“@‚h‚“@‚m‚‚”@‚`‚r‚b‚h‚h
uniform mat4 ‚m‚‚”‚`‚r‚b‚h‚h;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly was the conversion done to these files? (I'm not an expert on file encodings.) Were they UTF-16 before and have been converted to UTF-8 now? Are we sure that the characters are interpreted the same way, for example when this shader is loaded? I see the meta tag above indicates the character set is UTF-8 so was the browser just being permissive before in loading UTF-16 characters?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah maybe? I can see here that it says "NotASCII" with weird codepoints, so that comes from somewhere!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants