summaryrefslogtreecommitdiff
path: root/repo/system/perl/musl-locale.patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
commit48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch)
tree00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/system/perl/musl-locale.patch
parent871b2b573f01c1b3176a0f65458b3d281b41c437 (diff)
removed idea of repos
Diffstat (limited to 'repo/system/perl/musl-locale.patch')
-rw-r--r--repo/system/perl/musl-locale.patch37
1 files changed, 0 insertions, 37 deletions
diff --git a/repo/system/perl/musl-locale.patch b/repo/system/perl/musl-locale.patch
deleted file mode 100644
index 65839f1..0000000
--- a/repo/system/perl/musl-locale.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-diff --git a/locale.c b/locale.c
-index 7653340..7243cb1 100644
---- a/locale.c
-+++ b/locale.c
-@@ -581,6 +581,10 @@ S_emulate_setlocale(const int category,
-
- return (char *) querylocale(mask, cur_obj);
-
-+# elif defined(_NL_LOCALE_NAME)
-+
-+ return (char *) nl_langinfo_l(_NL_LOCALE_NAME(category), cur_obj);
-+
- # else
-
- /* If this assert fails, adjust the size of curlocales in intrpvar.h */
-@@ -737,7 +741,7 @@ S_emulate_setlocale(const int category,
-
- /* Here, we are switching locales. */
-
--# ifndef HAS_QUERYLOCALE
-+# if !defined(HAS_QUERYLOCALE) && !defined(_NL_LOCALE_NAME)
-
- if (strEQ(locale, "")) {
-
-@@ -1094,6 +1098,12 @@ S_emulate_setlocale(const int category,
- locale = querylocale(mask, new_obj);
- }
-
-+# elif defined(_NL_LOCALE_NAME)
-+
-+ if (strEQ(locale, "")) {
-+ locale = nl_langinfo_l(_NL_LOCALE_NAME(category), new_obj);
-+ }
-+
- # else
-
- /* Here, 'locale' is the return value */