<div dir="ltr">Hi Stephan,<div><br></div><div>I always convert Chinese string to \uXXXX form, and refrain from </div><div>using non English characters directly. </div><div><br></div><div>I believe that allows others who don't know my language to help me,</div><div>or at least do not make them confuse when reading the code. </div><div><br></div><div>Another issue is that developers might not install the necessary font to</div><div>read them, that developers see different contents when reading the same code.</div><div><br></div><div>So I think using actual Unicode content is an bad idea.</div><div><br></div><div>Best Regards</div><div> </div><div><br></div><div><br></div><div>An</div><div class="gmail_extra"><br><div class="gmail_quote">2017-08-24 21:04 GMT+08:00 Stephan Bergmann <span dir="ltr"><<a href="mailto:sbergman@redhat.com" target="_blank">sbergman@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 08/17/2017 10:33 AM, Stephan Bergmann wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Are we confident that all relevant toolchains treat C++ source files as UTF-8 now?  How about e.g. Linux, where I could imagine that GCC/Clang would base their behavior on LC_* env vars?<br>
</blockquote>
<br></span>
Turns out GCC/Clang have a corresponding flag, now set with <<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=30935cf8adf8747b46ea485ba4a320b542a4f7a5" rel="noreferrer" target="_blank">https://cgit.freedesktop.org/<wbr>libreoffice/core/commit/?id=30<wbr>935cf8adf8747b46ea485ba4a320b5<wbr>42a4f7a5</a>> "Explicitly specify -finput-charset=UTF-8 for GCC/Clang".<br>
<br>
That means that if all agree that UTF-8 encoded C++ source files are a good idea, we can now use actual Unicode content (instead of \uXXXX, \UXXXXXXXX escapes) in u8/u/U string literals on master.<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org" target="_blank">LibreOffice@lists.freedesktop.<wbr>org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/libreoffice" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/libreoffice</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Mark Hung<br></div></div></div>
</div></div>