Hi INADA-san,<br><br>This PEP is the result of 2 years of refactoring to *simplify* the *implementation*. I agree that bytes string is the native type on Unix. But. On Windows, Unicode is the native type. On Python 3, Unicode is the native type. One key of the simplified implementation is the unique PyConfig structure. It means that all platforms have to use the same types.<br><br>I love the idea of using only wchar_t* for PyConfig because it makes Python initialization more reliable. The question of the encoding used to decode byte strings and any possible decoding error (very unlikely thanks to surrogateescape) is better defined: it occurs when you set the parameter, not "later during init".<br><br>The PEP adds Py_UnixMain() for most trivial use cases, and PyConfig_DecodeLocale() and PyConfig_SetArgs() for more advanced cases.<br><br>Victor<br><br>Le samedi 4 mai 2019, Inada Naoki <<a href="mailto:songofacandy@gmail.com">songofacandy@gmail.com</a>> a écrit :<br>> 2019年5月3日(金) 4:59 Victor Stinner <<a href="mailto:vstinner@redhat.com">vstinner@redhat.com</a>>:<br>>><br>>> * PyConfig now only uses wchar_t* for strings (unicode): char* (bytes)<br>>> is no longer used. I had to hack CPython internals for that :-)<br>><br>> I prefer char* to wchar_t* on Unix.  Since UTF-8 dominated Unix world<br>> in these decades, wchar_t* is less usable on Unix nowadays.<br>><br>> Is it impossible to use just char* on Unix and wchar_t* on Windows?<br>><br>> --<br>> Inada Naoki  <<a href="mailto:songofacandy@gmail.com">songofacandy@gmail.com</a>><br>><br><br>-- <br>Night gathers, and now my watch begins. It shall not end until my death.<br>