chiark / gitweb /
Initial push
[termux-packages] / packages / dash / mkbuiltins.patch
1 "The value of the LC_ALL environment variable has precedence over any of the other environment variables starting with LC_"
2
3 Patch submitted upstream (with more information) at:
4         http://news.gmane.org/gmane.comp.shells.dash
5
6 diff -u -r ../dash-0.5.8/src/mkbuiltins ./src/mkbuiltins
7 --- ../dash-0.5.8/src/mkbuiltins        2014-09-28 04:19:32.000000000 -0400
8 +++ ./src/mkbuiltins    2015-05-17 19:08:00.076452891 -0400
9 @@ -78,7 +78,7 @@
10                 if ($i ~ /^-/)
11                         line = $(++i) "\t" line
12                 print line
13 -       }}' $temp | LC_COLLATE=C sort -k 1,1 | tee $temp2 | awk '{
14 +       }}' $temp | LC_ALL= LC_COLLATE=C sort -k 1,1 | tee $temp2 | awk '{
15                 opt = ""
16                 if (NF > 2) {
17                         opt = substr($2, 2)
18 @@ -97,7 +97,7 @@
19   */
20  
21  !
22 -sed 's/        -[a-z]*//' $temp2 | nl -b a -v 0 | LC_COLLATE=C sort -u -k 3,3 |
23 +sed 's/        -[a-z]*//' $temp2 | nl -b a -v 0 | LC_ALL= LC_COLLATE=C sort -u -k 3,3 |
24  tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ |
25         awk '{  printf "#define %s (builtincmd + %d)\n", $3, $1}'
26  printf '\n#define NUMBUILTINS %d\n' $(wc -l < $temp2)