summaryrefslogtreecommitdiff
path: root/Makefile.glib
diff options
context:
space:
mode:
authorPriit Laes <plaes@plaes.org>2012-02-24 12:00:20 +0200
committerDan Winship <danw@gnome.org>2012-02-24 08:17:38 -0500
commit4fdc64a8c520cd5e71e916fe52bc79530f080470 (patch)
treef9b44ce299d37210575d3306f692dc29b152af8a /Makefile.glib
parent015fe77b2c4499fd00618f1722948ea1982bfacf (diff)
Makefile.glib: Fix locale-specific issues
When using Estonian (et_EE) locale, 'a-z' range skips 'tuv...' https://bugzilla.gnome.org/show_bug.cgi?id=654395
Diffstat (limited to 'Makefile.glib')
-rw-r--r--Makefile.glib4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.glib b/Makefile.glib
index 42822ed377..951ce6f839 100644
--- a/Makefile.glib
+++ b/Makefile.glib
@@ -23,7 +23,7 @@ define _glib_make_genmarshal_rules
$(if $(_glib_marshal_sources),,$(error Need to define $(_glib_marshal_sources_var) for $(1).[ch]))
$(1).list.stamp: $(_glib_marshal_sources)
- $$(_GLIB_V_GEN) sed -ne 's/.*_$(_glib_marshal_prefix)_\([_A-Z]*\).*/\1/p' $$^ | sort -u | sed -e 's/__/:/' -e 's/_/,/g' > $(1).list.tmp && \
+ $$(_GLIB_V_GEN) LC_ALL=C sed -ne 's/.*_$(_glib_marshal_prefix)_\([_A-Z]*\).*/\1/p' $$^ | sort -u | sed -e 's/__/:/' -e 's/_/,/g' > $(1).list.tmp && \
(cmp -s $(1).list.tmp $(1).list || cp $(1).list.tmp $(1).list) && \
rm -f $(1).list.tmp && \
echo timestamp > $$@
@@ -59,7 +59,7 @@ $(foreach f,$(_GLIB_MARSHAL_GENERATED),$(eval $(call _glib_make_genmarshal_rules
_GLIB_ENUM_TYPES_GENERATED = $(subst .h,,$(filter %enum-types.h %enumtypes.h,$(GLIB_GENERATED)))
_glib_enum_types_prefix = $(subst -,_,$(notdir $(1)))
-_glib_enum_types_guard = __$(shell echo $(_glib_enum_types_prefix) | tr 'a-z' 'A-Z')_H__
+_glib_enum_types_guard = __$(shell LC_ALL=C echo $(_glib_enum_types_prefix) | tr 'a-z' 'A-Z')_H__
_glib_enum_types_sources_var = $(_glib_enum_types_prefix)_sources
_glib_enum_types_sources = $(filter-out $(GLIB_GENERATED),$($(_glib_enum_types_sources_var)))
_glib_enum_types_h_sources = $(filter %.h,$(_glib_enum_types_sources))