The bug is confirmed in Karmic.
Steps to reproduce: 1)Take a terminal 2)# cd /tmp; mkdir test; cd test 3)# sh -c "name=сшуЁ; echo \$name > \$name" 4)# ls 5)See a new file "??у?" with garbage in name, but having proper string "сшуЁ" inside.
The bug is confirmed in Karmic.
Steps to reproduce:
1)Take a terminal
2)# cd /tmp; mkdir test; cd test
3)# sh -c "name=сшуЁ; echo \$name > \$name"
4)# ls
5)See a new file "??у?" with garbage in name, but having proper string "сшуЁ" inside.