Menu

#213 strange charset transformations on cwd and unnecessary mkdir

open
nobody
None
5
2011-08-03
2011-08-03
kdevel
No

Streamripper performs an unnecessary transformation of the octet field returned by getcwd and unnecessarily recreates its path components with mkdir. As a result streamripper creates a new subdirectory tree and places its files there. This occurs if the current working directory contains octet values outside of the ANSI character set and the current character encoding (LANG) streamripper is running with does not contain that octet value(s). Example:

# pwd
/tmp
# mkdir xöx
# cd xöx/
# echo $LANG
de_DE.utf8
# LANG= streamripper dradio.ic.llnwd.net/stream/dradio_dlf_m_a.ogg
Connecting...
stream: This is my server name
server name: Limecast 2.0.1

^Ckipping... ] - Deutschlandfunk [ 29kb]
shutting down
bye..
# ll
total 0
drwxr-xr-x 2 sssss users 40 Aug 4 01:41 ./
drwxrwxrwt 23 root root 520 Aug 4 01:41 ../
# ll ../x\?x/
total 0
drwxr-xr-x 3 sssss users 60 Aug 4 01:41 ./
drwxrwxrwt 23 root root 520 Aug 4 01:41 ../
drwxr-xr-x 3 sssss users 60 Aug 4 01:41 This is my server name/

Discussion


Log in to post a comment.

MongoDB Logo MongoDB