Justin, lets take this to the list as some may know what's happening.
The only two things that I can think that could cause this problem are:
1) fstab may need a utf8 option:
/dev/hdc       /mnt/dvd      auto     ro,noauto,utf8         0     0
2) src/sitecustomize.py does not have the correct default.
sys.setdefaultencoding('utf-8')

Don't have any other ideas.

Duncan

While trying to rip a CD with a non-standard char in it's name; I get
this traceback.

Traceback (most recent call last):
File "/usr/local/src/freevo/src/plugins/rom_drives.py", line 334, in
move_tray
s = ioctl(fd, CDROMCLOSETRAY)
IOError: [Errno 5] Input/output error
Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap self.run()
File "/usr/local/src/freevo/src/audio/plugins/cdbackup.py", line 269, in run
self.cd_backup_threaded(self.device, rip_format='mp3')
File "/usr/local/src/freevo/src/audio/plugins/cdbackup.py", line 334, in
cd_backup_threaded
os.makedirs(pathname, 0777)
File "/usr/lib/python2.4/os.py", line 159, in makedirs
mkdir(name, mode)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in
position 39: ordinal not in range(128)

Sender: phishman3579

"So the config could be changed LOCALE='latin1' in local_config"

Isnt LOCALE='latin1' defaulted in the local_config? I haven't changed the
LOCALE, so it should work, right?

Sender: duncanwebb

I think that this is a config problem:
Try this from the python prompt:
>>> pathname=u'/tmp/\xf1'
>>> pathname
u'/tmp/\xf1'
>>> print pathname
/tmp/ñ
>>> import os
>>> os.makedirs(pathname, 0777)
>>> pathname=u'/tmp/\xf11'
>>> print pathname
/tmp/ñ1
>>> os.makedirs(unicode(pathname), 0777)

In my case the system wrote two files encoded as utf-8, check by
# ls -1 /tmp
ñ
ñ1
ls -1 /tmp/ | od -c
0000100  ... 303 261  \n 303 261   1  \n ...

So the config could be changed LOCALE='latin1' in local_config or
LC_ALL=en_GB.UTF-8 environment variable.

Sender: duncanwebb

latin1 is the default yes
Should work fine.

You can try the commands below in
freevo prompt

I tested this with Python-2.5 and Python-2.4.4 and I've ripped CDs with
non-ascii chars, worked fine for me.

Sender: phishman3579

I just tried the same commands from the freevo prompt and the python
prompt, they both worked fine. I'm not really sure where to go next.



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to