Jokosher cannot open project with non-English name

Bug #407456 reported by yippi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Jokosher
Fix Released
High
Michael Sheldon

Bug Description

How to reproduce:
1. Login with non-English locale, such as zh_CN.UTF-8
2. Startup jokosher. Create a new project and set the project name as Chinese
characters
3. Save the project
4. Open the project in jokosher

You will see a pop up error window as below:
-----------------------------------------------------------------------------
The project file could not be opened.

It is recommended that you report this to the Jokosher developers or get help
at http://www.jokosher.org/forums/

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/Jokosher/ProjectManager.py", line 191,
in LoadProjectFile
  File "/usr/lib/python2.6/site-packages/Jokosher/ProjectManager.py", line 502,
in __init__
  File "/usr/lib/python2.6/site-packages/Jokosher/ProjectManager.py", line 396,
in LoadInstrument
  File "/usr/lib/python2.6/site-packages/Jokosher/ProjectManager.py", line 578,
in LoadEvent
  File "/usr/lib/python2.6/site-packages/Jokosher/Event.py", line 164, in
CreateFilesource
  File "/usr/lib/python2.6/site-packages/Jokosher/Event.py", line 188, in
SetProperties
  File "/usr/lib/python2.6/site-packages/Jokosher/PlatformUtils/Unix.py", line
26, in pathname2url
  File "/usr/lib/python2.6/urllib.py", line 61, in pathname2url
    return quote(pathname)
  File "/usr/lib/python2.6/urllib.py", line 1216, in quote
    res = map(safe_map.__getitem__, s)
KeyError: u'\u6d4b
-----------------------------------------------------------------------------

Related branches

Laszlo Pandy (laszlok)
Changed in jokosher:
assignee: nobody → Michael Sheldon (michael-sheldon)
Revision history for this message
Peterson Silva (petersonsilva) wrote :

I can confirm this. Using locale pt_br

Revision history for this message
Peterson Silva (petersonsilva) wrote :

I tested it with english locale and I noticed it has nothing to do with locale, it has to do with a gstreamer error. While it doesn't appear, it's fine, I can save and load the project. However, when I'm playing the timeline there's this yellow warning box inside the window that tells me there is a gstreamer error. After that, no luck loading the project file.

Revision history for this message
Paul van Tilburg (paulvt) wrote :

I can confirm that gstreamer error. I continuously dismiss that error since everything seems to play fine.

Revision history for this message
Paul van Tilburg (paulvt) wrote :

I forgot to ask: did somebody find out a workaround? I really want to open my project again.

Revision history for this message
Laszlo Pandy (laszlok) wrote :

Can anyone who can reproduce this send me the file names they used for the project and the audio files in it?
I can't reproduce this even when using the chinese character mentioned in the traceback: 测 (\u6d4b).

If someone could send me the .jokosher file which fails to load that would be even better.

Revision history for this message
jerry (jerry-tan) wrote :

Reproduce step:
1. login as zh-CN.UTF-8,
2. create a new project, name as "哈哈“
3. add an audio file, such as shutdown.wav.
4. save and close.

5. start josher again to open "哈哈", failed.

Revision history for this message
avazhang (ava-zhang) wrote :

1. Chinese character Project name, add an English name audio file, such as /usr/share/sounds/email.wav
    Can reproduce this bug

2. Chinese character Project name, no audio file in the project (Empty project)
    Can not reproduce this bug

3. English character Project name, add an Chinese name audio file, such as 邮件.wav
    Can reproduce this bug

I tested it on OpenSolaris131, zh_CN.UTF-8 locale

Revision history for this message
Laszlo Pandy (laszlok) wrote :

Thanks jerry and avazhang for you help. I figured it out and fixed in my branch (linked to this bug). It will be released in 0.11.4 sometime in the next month I hope. Until then please make use of my branch.

The technical details are here:
http://bugs.python.org/issue1712522

Laszlo Pandy (laszlok)
Changed in jokosher:
milestone: none → 0.11.4
importance: Undecided → High
status: New → Fix Committed
Laszlo Pandy (laszlok)
Changed in jokosher:
status: Fix Committed → Fix Released
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.