I am running a ubuntu 11.10, with Chinese locales. I have many Chinese sub-directories in my working directory, which is also a shell script's working directory. The function of the shell script is to manually generate a config file in each sub-dirs (a simple script, see attachment) , When I run the shell script, I got some chaos characters, like these:
----
genconfig.sh: 6: cannot create ./��意插图/wallpaper.cfg: Directory nonexistent
genconfig.sh: 9: cannot create ./非主����意/wallpaper.cfg: Directory nonexistent
genconfig.sh: 10: cannot create ./非主��美女/wallpaper.cfg: Directory nonexistent
genconfig.sh: 11: cannot create ./风景��意/wallpaper.cfg: Directory nonexistent
genconfig.sh: 12: cannot create ./高清��意/wallpaper.cfg: Directory nonexistent
genconfig.sh: 25: cannot create ./����飞车/wallpaper.cfg: Directory nonexistent
genconfig.sh: 28: cannot create ./精美��意/wallpaper.cfg: Directory nonexistent
genconfig.sh: 41: cannot create ./��静自然风景/wallpaper.cfg: Directory nonexistent
genconfig.sh: 47: cannot create ./清��绿色/wallpaper.cfg: Directory nonexistent
genconfig.sh: 60: cannot create ./幸福��情/wallpaper.cfg: Directory nonexistent
genconfig.sh: 61: cannot create ./炫彩��意/wallpaper.cfg: Directory nonexistent
genconfig.sh: 65: cannot create ./游����/wallpaper.cfg: Directory nonexistent
----
when I copy the shell script content and then paste in gnome-terminal or lxterminal, then the "command not found handle" happened.
sorry, fix some information.
I am running a ubuntu 11.10, with Chinese locales. I have many Chinese sub-directories in my working directory, which is also a shell script's working directory. The function of the shell script is to manually generate a config file in each sub-dirs (a simple script, see attachment) , When I run the shell script, I got some chaos characters, like these: wallpaper. cfg: Directory nonexistent �意/wallpaper. cfg: Directory nonexistent wallpaper. cfg: Directory nonexistent wallpaper. cfg: Directory nonexistent wallpaper. cfg: Directory nonexistent wallpaper. cfg: Directory nonexistent wallpaper. cfg: Directory nonexistent wallpaper. cfg: Directory nonexistent wallpaper. cfg: Directory nonexistent wallpaper. cfg: Directory nonexistent wallpaper. cfg: Directory nonexistent /wallpaper. cfg: Directory nonexistent
----
genconfig.sh: 6: cannot create ./��意插图/
genconfig.sh: 9: cannot create ./非主���
genconfig.sh: 10: cannot create ./非主��美女/
genconfig.sh: 11: cannot create ./风景��意/
genconfig.sh: 12: cannot create ./高清��意/
genconfig.sh: 25: cannot create ./����飞车/
genconfig.sh: 28: cannot create ./精美��意/
genconfig.sh: 41: cannot create ./��静自然风景/
genconfig.sh: 47: cannot create ./清��绿色/
genconfig.sh: 60: cannot create ./幸福��情/
genconfig.sh: 61: cannot create ./炫彩��意/
genconfig.sh: 65: cannot create ./游����
----
when I copy the shell script content and then paste in gnome-terminal or lxterminal, then the "command not found handle" happened.
It ask me to report a bug here.