Browse files

Fix gperf usage (FS#740)

Signed-off-by: Julien Danjou <julien@danjou.info>
  • Loading branch information...
1 parent 9f05671 commit 182851d29d6de121de82c516a41509b517a5efb7 @automatthias automatthias committed with jd Mar 15, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 build-utils/gperf.sh
View
4 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

0 comments on commit 182851d

Please sign in to comment.