git-migration: msgconv.sh - grep is broken somewhere with locales, use | in...

glen glen at pld-linux.org
Sat Feb 5 14:52:20 CET 2011


Author: glen                         Date: Sat Feb  5 13:52:20 2011 GMT
Module: git-migration                 Tag: HEAD
---- Log message:
- grep is broken somewhere with locales, use | instead of choices in [], it just wouldn't match 'ż', thx mmazur for hint

---- Files affected:
git-migration:
   msgconv.sh (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: git-migration/msgconv.sh
diff -u git-migration/msgconv.sh:1.1 git-migration/msgconv.sh:1.2
--- git-migration/msgconv.sh:1.1	Sat Feb  5 14:35:51 2011
+++ git-migration/msgconv.sh	Sat Feb  5 14:52:14 2011
@@ -5,7 +5,7 @@
 # $ git-filter-branch --msg-filter msgconv.sh
 
 s=$(cat)
-if echo "$s" | grep --color '[±æê³ñ󶼿¡ÆÊ£ÑÓ¦¬¯]'; then
+if echo "$s" | LC_ALL=C LANG= grep -E '±|æ|ê|³|ñ|ó|¶|¼|¿|¡|Æ|Ê|£|Ñ|Ó|¦|¬|¯'; then
 	echo "$s"  | iconv -flatin2 -tutf8
 else
 	echo "$s"
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/git-migration/msgconv.sh?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list