[yelp-tools] Set LC_ALL instead of LANG for awk, #709354
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-tools] Set LC_ALL instead of LANG for awk, #709354
- Date: Sun, 2 Feb 2014 19:25:29 +0000 (UTC)
commit 6a26ba9b486a0dfb86afdcb6e8a450ee8dc3dd06
Author: Shaun McCance <shaunm gnome org>
Date: Sun Feb 2 14:23:12 2014 -0500
Set LC_ALL instead of LANG for awk, #709354
tools/yelp-build.in | 4 ++--
tools/yelp-check.in | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tools/yelp-build.in b/tools/yelp-build.in
index b76349c..50f28f5 100755
--- a/tools/yelp-build.in
+++ b/tools/yelp-build.in
@@ -36,7 +36,7 @@ mkdir_p () {
}
urlencode () {
- LANG=C awk '
+ LC_ALL=C awk '
BEGIN {
for (i = 1; i <= 255; i++) chars[sprintf("%c", i)] = i;
}
@@ -54,7 +54,7 @@ BEGIN {
}
urldecode () {
- LANG=C awk '
+ LC_ALL=C awk '
BEGIN {
for(i = 0; i < 10; i++) hex[i] = i;
hex["A"] = hex["a"] = 10;
diff --git a/tools/yelp-check.in b/tools/yelp-check.in
index d1fe831..dedafab 100755
--- a/tools/yelp-check.in
+++ b/tools/yelp-check.in
@@ -32,7 +32,7 @@ urlencode () {
else
urlencode_slash='\/'
fi
- echo "$1" | LANG=C awk '
+ echo "$1" | LC_ALL=C awk '
BEGIN {
for (i = 1; i <= 255; i++) chars[sprintf("%c", i)] = i;
}
@@ -50,7 +50,7 @@ BEGIN {
}
urldecode () {
- echo "$1" | LANG=C awk '
+ echo "$1" | LC_ALL=C awk '
BEGIN {
for(i = 0; i < 10; i++) hex[i] = i;
hex["A"] = hex["a"] = 10;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]