summaryrefslogtreecommitdiff
path: root/exgettext
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2001-11-23 07:52:27 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2001-11-23 07:52:27 +0000
commitda34f9fc343796c6025e60a8f5726604d9a34b74 (patch)
tree6b97e5fec2fe7c7d9df7a2ed418bbeff0c78eb31 /exgettext
parentabb43c1f76f48e45fcabe330a503a62eaa117db7 (diff)
downloaddiffutils-da34f9fc343796c6025e60a8f5726604d9a34b74.tar.gz
Always operate in the C locale.
Set AWK using a method that works even with broken shells.
Diffstat (limited to 'exgettext')
-rwxr-xr-xexgettext21
1 files changed, 13 insertions, 8 deletions
diff --git a/exgettext b/exgettext
index 3087d1d..bdcd933 100755
--- a/exgettext
+++ b/exgettext
@@ -1,17 +1,16 @@
#! /bin/sh
-# Wrapper around gettext for GCC sources.
-# Copyright 1998 Free Software Foundation, Inc.
+# Wrapper around gettext for programs using the msgid convention.
-# Written by Paul Eggert <eggert@twinsun.com>.
+# Copyright (C) 1998, 2001 Free Software Foundation, Inc.
-# This file is part of GNU CC.
+# Written by Paul Eggert <eggert@twinsun.com>.
-# GNU CC is free software; you can redistribute it and/or modify
+# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
-# GNU CC is distributed in the hope that it will be useful,
+# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
@@ -21,8 +20,14 @@
# the Free Software Foundation, 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
-# Set environment to default value, if not already set.
-: ${AWK=awk}
+# Always operate in the C locale.
+LANG=C
+LANGUAGE=C
+LC_ALL=C
+export LANG LANGUAGE LC_ALL
+
+# Set AWK if environment has not already set it.
+AWK=${AWK-awk}
# The argument to this wrapper is the xgettext command to be executed.
# Extract the xgettext program name from the rest of the command.