From: Pádraig Brady Date: Thu, 18 Sep 2025 13:33:49 +0000 (+0100) Subject: localcharset: fix macOS build X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d7a6e011389cd02c91194e82d105e0a9698dfbe;p=thirdparty%2Fgnulib.git localcharset: fix macOS build * lib/localcharset.c: s/ostreq/streq/ typo. --- diff --git a/ChangeLog b/ChangeLog index d83d3cf4d0..74d54e24b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2025-09-18 Pádraig Brady + + localcharset: fix macOS build + * lib/localcharset.c: s/ostreq/streq/ typo. + 2025-09-17 Bruno Haible threadlib: Improve support for HP-UX. diff --git a/lib/localcharset.c b/lib/localcharset.c index 57b9c9da4a..79a55c5efd 100644 --- a/lib/localcharset.c +++ b/lib/localcharset.c @@ -1113,7 +1113,7 @@ locale_charset (void) #ifdef DARWIN7 /* Mac OS X sets MB_CUR_MAX to 1 when LC_ALL=C, and "UTF-8" (the default codeset) does not work when MB_CUR_MAX is 1. */ - if (ostreq (codeset, "UTF-8") && MB_CUR_MAX_L (uselocale (NULL)) <= 1) + if (streq (codeset, "UTF-8") && MB_CUR_MAX_L (uselocale (NULL)) <= 1) codeset = "ASCII"; #endif