-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
*.rc: escape non-ASCII/non-UTF-8 character for clarity #1217
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with this. Maybe add a comment above, explaining what \xA9 will render as?
Agreed. Added a comment about the meaning of \xA9. |
I'm just curious in your codepage what does © look like |
FWIW, here's a commit that implements UTF-8 Windows Resources for another project: |
Looking at that makes me wonder why our resource file translation field is currently set to 1200 (Unicode) if the block is not in any Unicode encoding. Is that a mistake and should it be 1252 (ANSI/Latin1) instead? Also, though there's no hard-and-fast rule for this the traditional practice for PR branches is to go on your origin instead of upstream. An exception would be multiple project collaborators working on a branch like recall the https proxy branch that was around for a while or now to a much lesser extent generate-curl-1. A small change like this will be transient though and not that. |
@jay As for 1200 vs 1252 I think it's fine as it as, and although I've yet to find definitive information, my experience is that this value doesn't influence how resource compilers interpret the I've updated the patch to leave out guesses about the codepage being used in relation to The branching is noted, again something that crossed my mind, but decided this is such a simple change that the branch will be short lived. |
a144aab
to
e23a934
Compare
Converted hex to lowercase to match rest of file and cleaned the comment further. |
Ok LGTM, please make sure to reference this discussion in the body of the upstream commit message with a Ref: or Closes: line, for example one of these |
Thank you @jay. I hope I got it right! |
A code \xA9 is defined in CP1252 and Unicode but is not defined in CP936 that cause a compilation problem on Chinese and other non-English Windows that "default language for non-unicode application" is non-Unicode. |
the suggested solution in that issue is use (c) instead, does anyone object to that? |
BTW, to avoid relying on default codepages used by the resource compiler in various environments, it may help to explicitly specify the |
IINAL, but my understanding is that (c) doesn't have the same legal significance that © does, in those jurisdictions where a copyright notice is still required. |
@miurahr can you try that |
@dfandrich INAL but, Berne Convention contract among 175 countries takes a way not to require formal registration or representation, that is because it is not mandatory to add © except for one who were living out of Berne Convension, or one who authored in USA before 1989 when US joined to Berne convention. @jay I'd like try -c65001 |
No description provided.