[HarfBuzz] strtod_l and Windows

Behdad Esfahbod behdad at behdad.org
Mon Nov 13 23:05:05 UTC 2017


Thanks.  Applied.

On Sun, Nov 12, 2017 at 4:47 PM, Jean Ghali <jghali at libertysurf.fr> wrote:

> Hi all,
>
> Commit 3ca69c8c32b8408dd9f8e6e866cd07e58c0d79b7 has introduced the use of
> <xlocale> and
> strtod_l in order to correctly parse decimal numbers in French & other
> locales (per commit
> message). I'm bit late, but having faced in the past similar issue in
> Scribus and Windows,
> I would like to contribute the equivalent code for Windows MSVC. MSVC C
> library has indeed
> a similar api to the one provided by <xlocale.h>:
> - locale_t becomes _locale_t
> - newlocale() becomes _create_locale()
> - freelocale() becomes _free_locale()
> - strtod_l() becomes _strtod_l()
>
> So please find in attachments a patch which does the necessary
> modifications for MVSC
> compiler. Unfortunately it seems MinGW C library does not provide this api
> yet, so I had
> to keep those modifications MSVC specific.
>
> Best regards,
> Jean Ghali
>
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/harfbuzz
>
>


-- 
behdad
http://behdad.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20171113/9c1966fc/attachment.html>


More information about the HarfBuzz mailing list