diff options
author | Karl Williamson <khw@cpan.org> | 2022-08-10 19:07:05 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-08-11 11:46:50 -0600 |
commit | 5ee7770b70fd48652f905014e47b07eb031ed5bc (patch) | |
tree | 7fceca742fbef37953d7b580fb3fc22bfb05c41e /cygwin | |
parent | 07a33394e5cc78cd37dc463e956c693aa331b1b1 (diff) | |
download | perl-5ee7770b70fd48652f905014e47b07eb031ed5bc.tar.gz |
Don't use POSIX 2008 locales on cygwin
newlocale(), required for this, is buggy. See
https://sourceware.org/pipermail/cygwin/2022-August/252043.html
Diffstat (limited to 'cygwin')
-rw-r--r-- | cygwin/cygwin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cygwin/cygwin.c b/cygwin/cygwin.c index 53b04c67e6..e0f64e4a49 100644 --- a/cygwin/cygwin.c +++ b/cygwin/cygwin.c @@ -160,6 +160,7 @@ leave: char* wide_to_utf8(const wchar_t *wbuf) { + dTHX; char *buf; int wlen = 0; char *oldlocale; @@ -188,6 +189,7 @@ wide_to_utf8(const wchar_t *wbuf) wchar_t* utf8_to_wide(const char *buf) { + dTHX; wchar_t *wbuf; mbstate_t mbs; char *oldlocale; |