<div dir="auto"><div>Hi,<br><div class="gmail_extra"><br><div class="gmail_quote">Le 10 déc. 2017 05:48, "INADA Naoki" <<a href="mailto:songofacandy@gmail.com">songofacandy@gmail.com</a>> a écrit :<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Now I'm OK to accept the PEP, except one nitpick.</blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">I got a private email about the same issue. I don't think that it's nitpicking since many people were confused about the relationship between the PEP 538 and PEP 540. So it seems like I was confused as well :-) I was also confused because my PEP evolved quickly. With the additionnal local.getpreferredenconding() change in my PEP, the two PEP became even more similar.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="quoted-text">
> Locale coercion only impacts non-Python code like C libraries, whereas<br>
> the Python UTF-8 Mode only impacts Python code: the two PEPs are<br>
> complementary.<br>
><br>
<br>
</div>This sentence seems bit misleading.<br>
If UTF-8 mode is disabled explicitly, locale coercion affects Python code too.<br>
locale.getpreferredencoding() is UTF-8, open()' s default encoding is UTF-8,<br>
and stdio is UTF-8/surrogateescape.<br>
<br>
So shouldn't this sentence is: "Locale coercion impacts both of Python code<br>
and non-Python code like C libraries, whereas ..."?<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">Right. I will rephrase it.</div><div dir="auto"><br></div><div dir="auto">Victor</div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div></div></div>