From 182851d29d6de121de82c516a41509b517a5efb7 Mon Sep 17 00:00:00 2001 From: Maciej Blizinski Date: Mon, 15 Mar 2010 09:58:37 +0100 Subject: [PATCH] Fix gperf usage (FS#740) Signed-off-by: Julien Danjou --- build-utils/gperf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-utils/gperf.sh b/build-utils/gperf.sh index 221a096f..96587fcf 100755 --- a/build-utils/gperf.sh +++ b/build-utils/gperf.sh @@ -50,7 +50,7 @@ do_h() { typedef enum awesome_token_t { A_TK_UNKNOWN, -`tr '[:lower:]' '[:upper:]' | sed -e "s/^[^/].*/ A_TK_&,/"` +`LC_ALL=C tr a-z A-Z | sed -e "s/^[^/].*/ A_TK_&,/"` } awesome_token_t; __attribute__((pure)) enum awesome_token_t a_tokenize(const char *s, int len); @@ -63,7 +63,7 @@ do_tokens() { case "$tok" in "") continue;; *) - echo "$tok, A_TK_`echo $tok | tr '[:lower:]' '[:upper:]'`" + echo "$tok, A_TK_`echo $tok | LC_ALL=C tr a-z A-Z`" ;; esac done