diff options
author | Karl Williamson <khw@cpan.org> | 2020-12-08 17:07:17 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-12-08 17:18:40 -0700 |
commit | 31667aca63c681e1f19afe2f493cc98e62188acc (patch) | |
tree | 571b30f22d82acedf188de96abe8233375ffd214 /cygwin | |
parent | 18ac9f3dde437027fccc1637594e2ef2c70b6fba (diff) | |
download | perl-31667aca63c681e1f19afe2f493cc98e62188acc.tar.gz |
Fix cygwin build
A macro name changed, and I didn't see it in the grep
Diffstat (limited to 'cygwin')
-rw-r--r-- | cygwin/cygwin.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cygwin/cygwin.c b/cygwin/cygwin.c index 3bb5818e58..bbb3e1a829 100644 --- a/cygwin/cygwin.c +++ b/cygwin/cygwin.c @@ -167,7 +167,7 @@ wide_to_utf8(const wchar_t *wbuf) /* Here and elsewhere in this file, we have a critical section to prevent * another thread from changing the locale out from under us. XXX But why * not just use uvchr_to_utf8? */ - LOCALE_LOCK; + SETLOCALE_LOCK; oldlocale = setlocale(LC_CTYPE, NULL); setlocale(LC_CTYPE, "utf-8"); @@ -180,7 +180,7 @@ wide_to_utf8(const wchar_t *wbuf) if (oldlocale) setlocale(LC_CTYPE, oldlocale); else setlocale(LC_CTYPE, "C"); - LOCALE_UNLOCK; + SETLOCALE_UNLOCK; return buf; } @@ -193,7 +193,7 @@ utf8_to_wide(const char *buf) char *oldlocale; int wlen = sizeof(wchar_t)*strlen(buf); - LOCALE_LOCK; + SETLOCALE_LOCK; oldlocale = setlocale(LC_CTYPE, NULL); @@ -205,7 +205,7 @@ utf8_to_wide(const char *buf) if (oldlocale) setlocale(LC_CTYPE, oldlocale); else setlocale(LC_CTYPE, "C"); - LOCALE_UNLOCK; + SETLOCALE_UNLOCK; return wbuf; } @@ -307,7 +307,7 @@ XS(XS_Cygwin_win_to_posix_path) mbstate_t mbs; char *oldlocale; - LOCALE_LOCK; + SETLOCALE_LOCK; oldlocale = setlocale(LC_CTYPE, NULL); setlocale(LC_CTYPE, "utf-8"); @@ -318,7 +318,7 @@ XS(XS_Cygwin_win_to_posix_path) if (oldlocale) setlocale(LC_CTYPE, oldlocale); else setlocale(LC_CTYPE, "C"); - LOCALE_UNLOCK; + SETLOCALE_UNLOCK; } else { /* use bytes; assume already ucs-2 encoded bytestream */ err = cygwin_conv_path(what, src_path, wbuf, wlen); } @@ -398,7 +398,7 @@ XS(XS_Cygwin_posix_to_win_path) wchar_t *wbuf = (wchar_t *) safemalloc(wlen); char *oldlocale; - LOCALE_LOCK; + SETLOCALE_LOCK; oldlocale = setlocale(LC_CTYPE, NULL); setlocale(LC_CTYPE, "utf-8"); @@ -424,7 +424,7 @@ XS(XS_Cygwin_posix_to_win_path) if (oldlocale) setlocale(LC_CTYPE, oldlocale); else setlocale(LC_CTYPE, "C"); - LOCALE_UNLOCK; + SETLOCALE_UNLOCK; } else { int what = absolute_flag ? CCP_POSIX_TO_WIN_A : CCP_POSIX_TO_WIN_A | CCP_RELATIVE; win_path = (char *) safemalloc(len + 260 + 1001); |