summaryrefslogtreecommitdiff
path: root/repo/system/lua-lpeg/test-fix-setlocale.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/lua-lpeg/test-fix-setlocale.patch
parent871b2b573f01c1b3176a0f65458b3d281b41c437 (diff)
removed idea of repos
Diffstat (limited to 'repo/system/lua-lpeg/test-fix-setlocale.patch')
-rw-r--r--repo/system/lua-lpeg/test-fix-setlocale.patch20
1 files changed, 0 insertions, 20 deletions
diff --git a/repo/system/lua-lpeg/test-fix-setlocale.patch b/repo/system/lua-lpeg/test-fix-setlocale.patch
deleted file mode 100644
index 028c18c..0000000
--- a/repo/system/lua-lpeg/test-fix-setlocale.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-os.setlocale just calls setlocale() from libc and musl's implementation
-behaves a bit differently in comparison with BSD libc or glibc.
-
-When particular locales for all categories are the same, e.g. "C",
-`setlocale(LC_ALL, "")` returns just "C" on BSD libc (tested on macOS)
-and glibc, but musl returns "C;C;C;C;C;C". When some locale is different,
-e.g. LC_CTYPE, then on macOS you get "C/en_US.UTF-8/C/C/C/C", on glibc
-"LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;...", on musl "en_US.UTF-8;C;C;C;C;C".
-
---- a/test.lua
-+++ b/test.lua
-@@ -1428,7 +1428,7 @@
-
-
- -- testing pre-defined names
--assert(os.setlocale("C") == "C")
-+assert(os.setlocale("C"):sub(1, 1) == "C")
-
- function eqlpeggsub (p1, p2)
- local s1 = cs2str(re.compile(p1))