<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Jul 14, 2013 at 4:00 AM, Harry Bock <span dir="ltr"><<a href="mailto:bock.harryw@gmail.com" target="_blank">bock.harryw@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">(b) Misunderstandings at the application level about the underlying filesystem's path encoding is not the problem of the Twisted API.  Correct me if I'm wrong, but that's the responsibility of the system administrator or individual user (at least on UNIX) to set the LANG environment variable, or for the application to call setlocale(3) to explicitly override it.<br>
</div></blockquote><div><br></div><div>There is no way to enforce a particular setting of the LANG environment variable globally; multiple users could use filenames encoded in different encodings (in fact even a single user could do this), and files could be transferred from other systems using different encodings. While a reasonable person might insist on the use of UTF-8 everywhere, there is no way to guarantee that UNIX filenames are all in the same encoding, or are even in any particular encoding at all (they might be binary non-text garbage), and the inability to deal with filenames like this would be somewhat of a serious defect.<br>
<br></div><div>On Windows, the reverse situation obtains, of course.<br></div></div>-- <br>mithrandi, i Ainil en-Balandor, a faer Ambar
</div></div>