[HTTPS-Everywhere] tr says ALDI.xml contains non-ASCII character(s)

Andreas F andreas1234567 at hotmail.com
Wed Mar 16 00:37:41 PDT 2011



The german supermarket chain ALDI has domain names that contain non-ascii characters.   The "trivial-validate" script uses 'tr' to detect non-ascii characters, and the validation fails (for me).  The 'tr' manual says that  "[:print:]" represents "all printable characters, including space".  Is the 'tr' character class "[:print:]" locale specific? Would the test pass if run on a system with german locale?

$ egrep '(from|to)=' ./src/chrome/content/rules/ALDI.xml | tr -d '[:print:][:space:]'
üü

$ man tr

[:print:]


      all printable characters, including space

 $ tr --version
tr (GNU coreutils) 5.97

-- 
Andreas



 		 	   		  


More information about the HTTPS-everywhere mailing list