Hello, I've done some research on UTF-8 support in bash. I think I would be better to switch every language file to UTF-8 to avoid current problems with special characters.
Switching to UTF-8 is very simple: LC_CTYPE=UTF-8 echo -ne '\033%G' Returning to ISO-8859-15 for example is more complicated, so I've tried this script: http://www.cl.cam.ac.uk/~mgk25/ucs/setcode UTF-8 => "LC_CTYPE=UTF-8;setcode" ISO-8859-15 => "LC_CTYPE=ISO-8859-15;setcode" Problem : setcode script has no licence: only "share and enjoy"... We may need to ask the author to release it under the GPL to use it. === Best solution (possible??) === I don't know whether it is possible to create a context to switch to UTF-8 only as long as scripts are running. === Other solution (dirty...) === OLD_LOCALE=$LC_CTYPE LC_CTYPE=UTF-8;setcode trap 'LC_CTYPE=$OLD_LOCALE;setcode' EXIT ... Any comment? _____ Tux
pgp1GC3uHGFaM.pgp
Description: PGP signature
