<div dir="ltr">Charsets are registered by IANA. <br><a href="https://tools.ietf.org/html/rfc2978">https://tools.ietf.org/html/rfc2978</a><br><a href="https://www.iana.org/assignments/character-sets/character-sets.xhtml">https://www.iana.org/assignments/character-sets/character-sets.xhtml</a><br><br>Of course, it doesn't particularly help in this case because filesystems for the most part (*) just care about octets and don't interpret them. The filesystem isn't going to tell you an encoding scheme for a name. <br><br>(*) Some filesystems do for example case folding or unicode normalizations. However for opening a file pretty much the only guarantee is that the octets you got from a directory listing of filesystem can be used to open the file. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 7, 2019 at 11:32 AM Ben Boeckel via Modules <<a href="mailto:modules@lists.isocpp.org">modules@lists.isocpp.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Mar 07, 2019 at 11:16:15 -0500, Tom Honermann wrote:<br>
> Strawman update to the JSON schema to support this:<br>
> <br>
> {<br>
> ...<br>
> "definitions": {<br>
> + "filename-encoding": {<br>
> + "$id": "#filename-encoding",<br>
> + "type": [<br>
> + "string",<br>
> + ],<br>
> + "description": "The name of the character encoding used to <br>
> interpret filenames",<br>
<br>
Which ISO/IETF standard are we referencing for encoding names?<br>
<br>
- utf-8<br>
- UTF-8<br>
- utf8<br>
- UTF8<br>
<br>
Do we need codepage information as well? Is that "standard" anywhere?<br>
<br>
What happens if an encoding that cannot be losslessly roundtripped is<br>
specified (e.g., Shift-JIS)?<br>
<br>
--Ben<br>
_______________________________________________<br>
Modules mailing list<br>
<a href="mailto:Modules@lists.isocpp.org" target="_blank">Modules@lists.isocpp.org</a><br>
Subscription: <a href="http://lists.isocpp.org/mailman/listinfo.cgi/modules" rel="noreferrer" target="_blank">http://lists.isocpp.org/mailman/listinfo.cgi/modules</a><br>
Link to this post: <a href="http://lists.isocpp.org/modules/2019/03/0208.php" rel="noreferrer" target="_blank">http://lists.isocpp.org/modules/2019/03/0208.php</a><br>
</blockquote></div>