<div dir="ltr">Thanks. Applied.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 12, 2017 at 4:47 PM, Jean Ghali <span dir="ltr"><<a href="mailto:jghali@libertysurf.fr" target="_blank">jghali@libertysurf.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
Commit 3ca69c8c32b8408dd9f8e6e866cd07<wbr>e58c0d79b7 has introduced the use of <xlocale> and<br>
strtod_l in order to correctly parse decimal numbers in French & other locales (per commit<br>
message). I'm bit late, but having faced in the past similar issue in Scribus and Windows,<br>
I would like to contribute the equivalent code for Windows MSVC. MSVC C library has indeed<br>
a similar api to the one provided by <xlocale.h>:<br>
- locale_t becomes _locale_t<br>
- newlocale() becomes _create_locale()<br>
- freelocale() becomes _free_locale()<br>
- strtod_l() becomes _strtod_l()<br>
<br>
So please find in attachments a patch which does the necessary modifications for MVSC<br>
compiler. Unfortunately it seems MinGW C library does not provide this api yet, so I had<br>
to keep those modifications MSVC specific.<br>
<br>
Best regards,<br>
Jean Ghali<br>
<br>______________________________<wbr>_________________<br>
HarfBuzz mailing list<br>
<a href="mailto:HarfBuzz@lists.freedesktop.org">HarfBuzz@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/harfbuzz" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/harfbuzz</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">behdad<br><a href="http://behdad.org/" target="_blank">http://behdad.org/</a></div>
</div>