hello
I don't understand my text tty beavior connected to filenames handling.
I play with two locales (properly installed and selected by LANG + all LC_x variables):
pl_PL.UTF-8 and pl_PL.ISO-8859-2
No mater which one I use" gnome terminal seems to behave correctly.
When I use UTF-8 in text tty it behaves correctly too.
By correctly I mean:
creates filenames, lists directories, echoes and cat-s files in proper encoding selected by locale variables
But when I switch into pl_PL.8859-2 text tty goes mad:
Creates files in UTF-8 (touch command)
cat interprets file in 8859-2
echo prints in 8859-2
And ls lists both kind of filenames incorrectly:
these encoded in UTF-8 and these in 8859-2 too!
When I call:
Code:
ls >file.txt
cat file.txt
File is printed correctly(!): in 8859-2
So there are two problems:
1) why text tty creates file names with UTF8 ignoring locale?
2) why ls shows all filenames improperly?
regards!
p.s: system is ubuntu 12.04