Can't load music with chinese characters in the name

Bug #296517 reported by yippi
2
Affects Status Importance Assigned to Milestone
Moovida
Invalid
High
Fernando Casanova

Bug Description

If you try to load songs which have Chinese chareaters as file name, then you can't load them in Elisa Music.

Tags: playback

Related branches

Revision history for this message
Olivier Tilloy (osomon) wrote :

Can you please attach a traceback of some kind?

Revision history for this message
yippi (brian-cameron) wrote :

Doing a "ls -b" in the directory, the files have these binary names:

\344\273\231\345\211\221\351\227\256\346\203\205.mp3
\345\256\266\344\271\241.mp3
\345\246\202\346\236\234\346\210\221\346\230\257\346\242\201\345\261\261\344\274\257.wma
\347\246\273\346\255\214.mp3

I see these messages in the terminal window where I launched elisa after I try to load the files:

WARN MainThread local_resource Nov 13 18:55:16 Skipping å¦æææ¯æ¢å±±ä¼¯.wma: 'ascii' codec can't encode characters in position 45-51: ordinal not in range(128) (elisa/plugins/base/local_resource.py:126)
WARN MainThread local_resource Nov 13 18:55:16 Skipping 离æ­.mp3: 'ascii' codec can't encode characters in position 45-46: ordinal not in range(128) (elisa/plugins/base/local_resource.py:126)
WARN MainThread local_resource Nov 13 18:55:16 Skipping ä»åé®æ
.mp3: 'ascii' codec can't encode characters in position 45-48: ordinal not in range(128) (elisa/plugins/base/local_resource.py:126)
WARN MainThread local_resource Nov 13 18:55:16 Skipping 家乡.mp3: 'ascii' codec can't encode characters in position 45-46: ordinal not in range(128) (elisa/plugins/base/local_resource.py:126)

Revision history for this message
Olivier Tilloy (osomon) wrote :

Thanks for this useful information, it looks like another crappy unicode issue.

Changed in elisa:
importance: Undecided → High
milestone: none → 0.5.x
status: New → Confirmed
Revision history for this message
Florian Boucault (fboucault) wrote :

Thanks Yippi, this is a quite critical issue for many users I believe.

What is your operating system and file system type and encoding that you are using?

Revision history for this message
yippi (brian-cameron) wrote :

I have seen this bug with both Solaris and OpenSolaris, but I haven't tested with other operating system. How do I tell what encoding I am using? As you can see above, the files are WMA and MP3 files, if that's what you mean.

Changed in elisa:
milestone: 0.5.x → 0.5.30
Olivier Tilloy (osomon)
Changed in elisa:
assignee: nobody → philn
Revision history for this message
Philippe Normand (philn) wrote :

Been some months.. Do you still encounter this bug?

Revision history for this message
Philippe Normand (philn) wrote :

I tried with a mp3 named "å¦æææ¯æ¢å±±ä¼¯.mp3" and it was scanned by the media_scanner. No error like the ones described in this bug.

Changed in elisa:
assignee: philn → nobody
milestone: 0.5.30 → none
status: Confirmed → Invalid
Revision history for this message
Olivier Tilloy (osomon) wrote :

From the look of comment #2, I wouldn't say this bug is invalid. I guess we lack information to reproduce it.
@yippi: could you point us to a file that triggers the bug?

Changed in elisa:
status: Invalid → Incomplete
Revision history for this message
Li Yuan (li-yuan) wrote :
Revision history for this message
Olivier Tilloy (osomon) wrote :

I can reproduce with the linked file.

Changed in elisa:
status: Incomplete → Confirmed
tags: added: playback
Revision history for this message
Fernando Casanova (fcasanova) wrote :

Patch sent for review:
https://www.moovida.com/quality/review/request/%<email address hidden>%3E

The patch for bug https://bugs.launchpad.net/moovida/+bug/374305 also solves this one !

Changed in moovida:
status: Confirmed → In Progress
assignee: nobody → Fernando Casanova (fcasanova)
milestone: none → 1.0.9
Changed in moovida:
milestone: 1.0.9 → bug-fixing-day
Revision history for this message
Fernando Casanova (fcasanova) wrote :

Solved by the latest merge (1599)

Changed in moovida:
assignee: Fernando Casanova (fcasanova) → Olivier Tilloy (osomon)
Revision history for this message
Fernando Casanova (fcasanova) wrote :

Maybe you want to thoroughly test this one (not only with Chinese characters, but with Russian or Thai characters)

Olivier Tilloy (osomon)
Changed in moovida:
status: In Progress → Fix Committed
assignee: Olivier Tilloy (osomon) → Fernando Casanova (fcasanova)
Olivier Tilloy (osomon)
Changed in moovida:
milestone: bug-fixing-day → 1.0.10
Revision history for this message
dino99 (9d9) wrote :

The latest free moovida 1.09 does not get any maintenance since a while. Now moovidadb.com is supporting Linux and support can be found at : http://www.fluendo.com/faq/

Changed in moovida:
status: Fix Committed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.