From 5ee7770b70fd48652f905014e47b07eb031ed5bc Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 10 Aug 2022 19:07:05 -0600 Subject: Don't use POSIX 2008 locales on cygwin newlocale(), required for this, is buggy. See https://sourceware.org/pipermail/cygwin/2022-August/252043.html --- cygwin/cygwin.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cygwin') 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; -- cgit v1.2.1