check: fix symbol exporting when building under et_EE locale
authorPriit Laes <plaes@plaes.org>
Mon, 16 Nov 2009 13:47:57 +0000 (15:47 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 18 Nov 2009 19:22:59 +0000 (19:22 +0000)
[A-Z] regexp fails under et_EE locale because Z in Estonian alphabet is
located after S and therefore characters starting with 'TUV...' are not
in the range anymore.

Fixes bug #602093.

libs/gst/check/Makefile.am

index 70b2f5f1da19d8df6f5f24a4a74c3405d300d9da..724d6a626e47ae7c1bc5c4a7b11dc39902241f04 100644 (file)
@@ -89,16 +89,17 @@ LIBGSTCHECK_EXPORTED_SYMBOLS = \
        $(LIBGSTCHECK_EXPORTED_VARS) \
        $(LIBGSTCHECK_EXPORTED_FUNCS)
 
+# Please do not even think about changing the alphabet below into A-Za-z.
+# It is there for purpose. (Bug #602093)
+CHECK_SYMS=`$(SED) -n -e 's/^..*CK_EXPORT[ ]\{1,\}\([_0-9ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]\{1,\}\)..*$$/\1/p' @top_srcdir@/libs/gst/check/libcheck/check.h.in`
 print-check-symbols:
-       CHECK_SYMS=`$(SED) -n -e 's/^..*CK_EXPORT[ ]\{1,\}\([_0-9A-Za-z]\{1,\}\)..*$$/\1/p' @top_srcdir@/libs/gst/check/libcheck/check.h.in` ; \
-       for s in $$CHECK_SYMS; do \
+       for s in $(CHECK_SYMS); do \
          echo $$s; \
        done;
 
 $(SYMBOLS_FILE):
-       CHECK_SYMS=`$(SED) -n -e 's/^..*CK_EXPORT[ ]\{1,\}\([_0-9A-Za-z]\{1,\}\)..*$$/\1/p' @top_srcdir@/libs/gst/check/libcheck/check.h.in` ; \
        rm -f $(SYMBOLS_FILE) 2>/dev/null; \
-       for s in $(LIBGSTCHECK_EXPORTED_SYMBOLS) $$CHECK_SYMS; do \
+       for s in $(LIBGSTCHECK_EXPORTED_SYMBOLS) $(CHECK_SYMS); do \
          echo $$s >> $(SYMBOLS_FILE); \
        done