mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
23 lines
658 B
Plaintext
23 lines
658 B
Plaintext
$NetBSD: patch-ba,v 1.2 2008/08/31 06:36:48 scottr Exp $
|
|
|
|
--- lib/misc/codesetOld.c.orig 2008-08-08 02:01:54.000000000 -0500
|
|
+++ lib/misc/codesetOld.c
|
|
@@ -70,7 +70,7 @@
|
|
#endif
|
|
|
|
|
|
-#if defined(__FreeBSD__) || defined(sun)
|
|
+#if defined(__FreeBSD__) || defined(sun) || defined(__NetBSD__)
|
|
static const char nul[] = {'\0', '\0'};
|
|
#else
|
|
static const wchar_t nul = L'\0';
|
|
@@ -735,7 +735,7 @@ CodeSetOldGetCodeSetFromLocale(void)
|
|
codeset = Util_SafeStrdup(nl_langinfo_l(CODESET, new));
|
|
freelocale(new);
|
|
|
|
-#elif defined(sun)
|
|
+#elif defined(sun) || defined(__NetBSD__)
|
|
|
|
char *locale = setlocale(LC_CTYPE, NULL);
|
|
if (!setlocale(LC_CTYPE, "")) {
|