[vlc-commits] check_headers: fix regular expression

Alexis Ballier git at videolan.org
Fri Apr 5 17:13:20 CEST 2013


vlc | branch: master | Alexis Ballier <aballier at gentoo.org> | Fri Apr  5 18:09:52 2013 +0300| [0eb725b018f441881706517c19fb8fa33ef7ccbe] | committer: Rémi Denis-Courmont

check_headers: fix regular expression

This broke depending on the locale (LC_COLLATE).

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0eb725b018f441881706517c19fb8fa33ef7ccbe
---

 src/check_headers |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/check_headers b/src/check_headers
index 63b009f..d0b4bb7 100755
--- a/src/check_headers
+++ b/src/check_headers
@@ -6,7 +6,7 @@ cd "$(dirname "$0")" || exit $?
 # Look for configure #defines in public headers.
 # There are incorrect, as external users don't have our <config.h>.
 regexp="$(cat ../config.h.in | \
-	sed -n -e 's/^#undef \([A-Z0-9_]*\)$/\1/p' | \
+	sed -n -e 's/^#undef \([[:upper:][:digit:]_]*\)$/\1/p' | \
 	grep -v 'WORDS_BIGENDIAN' | \
 	grep -v 'UNICODE' | \
 	grep -v '__LIBVLC__' | \



More information about the vlc-commits mailing list