From: Priit Laes Date: Fri, 24 Feb 2012 10:00:20 +0000 (+0200) Subject: Makefile.glib: Fix locale-specific issues X-Git-Tag: LIBSOUP_2_37_91~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a619eef0f076e4e5dd96bc6d1309b63aa7e2aecd;p=platform%2Fupstream%2Flibsoup.git 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 --- diff --git a/Makefile.glib b/Makefile.glib index 37f2b92..78eb07d 100644 --- a/Makefile.glib +++ b/Makefile.glib @@ -155,7 +155,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 > $$@ @@ -192,7 +192,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))