<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 11, 2014, at 8:22 AM, Ed Schouten <<a href="mailto:ed@80386.nl" class="">ed@80386.nl</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">2014-12-11 15:17 GMT+01:00 Joerg Sonnenberger <<a href="mailto:joerg@britannica.bec.de" class="">joerg@britannica.bec.de</a>>:<br class=""><blockquote type="cite" class="">Sane system use the same logic for the default C locale and the<br class="">non-default locales, just with a different table.<br class=""></blockquote><br class="">Sane systems also tend to evolve over time. The snippet of code that<br class="">we use for FreeBSD, for example, will not work on a system from before<br class="">November 2011. Who knows what Microsoft is going to do with MSVCRT.DLL<br class="">in the future?<br class=""><br class="">That said, I am not the maintainer of libc++. Feel free to make any<br class="">modifications to the proposed patch before committing.</div></blockquote><br class=""></div><div>I’ve been discussing this with Dan on IRC.</div><div><br class=""></div><div>I am quite happy to add a default rune table to libc++ (conditionally included) and to use it on systems that lack (or have defective) tables of their own.</div><div><br class=""></div><div>I am less enthusiastic about libc++ always providing its’ own - at this time. I’m worried about compatibility issues.</div><div><br class=""></div><div>My proposal:</div><div><br class=""></div><div>1) Put it in, use it for Ed’s system (whatever that is :-)) and for Android.</div><div>[ With some more static assertions to make sure that the size of the entries is big enough for the data type that’s stored there. ]</div><div>2) When that’s working, we can see about using it for other systems. </div><div><br class=""></div>— Marshall<div class=""><br class=""></div><div class="">P.S.<span class="Apple-tab-span" style="white-space:pre"> </span>I wrote a program that compares the “system table” and the one that Ed put together.</div><div class="">The source for this program is here:</div><div class=""><span class="Apple-tab-span" style="white-space:pre">    </span><a href="https://dl.dropboxusercontent.com/u/11048326/ctable.cpp" class="">https://dl.dropboxusercontent.com/u/11048326/ctable.cpp</a></div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>