Corrupted cyrillic (russian) names of folders (Cardapio 0.9.188 and 0.9.189!)

Bug #820200 reported by Ivan
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Cardapio
Fix Committed
Undecided
Unassigned

Bug Description

Output of Terminal:
(cardapio:7381): GConf-CRITICAL **: gconf_client_add_dir: assertion `gconf_valid_key (dirname, NULL)' failed
(cardapio:7381): Bonobo-WARNING **: Never got frame, control died - abnormal exit condition

 ~/.cache/Cardapio/cardapio.log is empty

Revision history for this message
Ivan (boitzov-ivan) wrote :
Revision history for this message
Thiago Teixeira (tvst) wrote :

Thanks for posting this! Can write here the name of one of those folders please? This will make it easier for me to reproduce the bug locally :)

Revision history for this message
Thiago Teixeira (tvst) wrote :

Ok, I believe this is now fixed in trunk. I just ended up using a name like "ӜӦӧӴӾӿҒ҉҈ЉԘԢԌԎႥႪႯჁਖਙਦਤ갍갟객갔ⲊⲕⲜⲟⲎ" during testing :)

Changed in cardapio:
status: New → Fix Committed
Thiago Teixeira (tvst)
Changed in cardapio:
status: Fix Committed → Fix Released
Revision history for this message
Ivan (boitzov-ivan) wrote :

Not fixed for me. The same view.
Original names of bookmarks:
Документы
Музыка
Картинки
Видео
Загрузки

Revision history for this message
Daem0n (dbrazhkin) wrote :

I'm confirm that bug.

Ubuntu 11.04
Cardapio 0.9.189-ubuntu4-natty1

I have a corrupted cyrillic folder names as Ivan

Daem0n (dbrazhkin)
summary: - Corrupted cyrillic (russian) names of folders (Cardapio 0.9.188 only!)
+ Corrupted cyrillic (russian) names of folders (Cardapio 0.9.188 and
+ 0.9.189!)
Revision history for this message
Thiago Teixeira (tvst) wrote :

Sorry, I have been pretty busy lately but I will look at this again this coming week.

As always, if anyone else would like to give it a shot, it would be highly appreciated :)

Cheers,

- T

Revision history for this message
Thiago Teixeira (tvst) wrote :

Hmm... I still can't reproduce this bug. I just tried the folder names posted by Ivan, but they display correctly on my computer.

Can you post the steps you are using to reproduce it?

For instance, this is what I'm doing in my case:
1) Close all copies of Cardapio
2) Remove Cardapio's config file ( mv ~/.config/Cardapio/config.json ~/.config/Cardapio/config.json.bak )
3) Create a folder named "Документы"
4) Open Cardapio, navigate to the folder above: it correctly says "Документы"

Other things I tried:
a) Add "Документы" to Nautilus bookmarks
b) Look inside Cardapio: The folder correctly says "Документы" under the "Places" group
c) Right-click on "Документы" in Cardapio and pin it (or add to side pane)
d) Look inside Cardapio and see that the name correctly says "Документы" in the "Pinned Items" group (and in the side pane).

I don't know what else to try. What am I missing?

Revision history for this message
Ivan (boitzov-ivan) wrote : Re: [Bug 820200] Re: Corrupted cyrillic (russian) names of folders (Cardapio 0.9.188 and 0.9.189!)

It affects only on default bookmarks like Photos ("Картинки" in my
translation), Documents, Video, etc.
New bookmarks are displays correctly.

2011/8/25 Thiago Teixeira <email address hidden>

> Hmm... I still can't reproduce this bug. I just tried the folder names
> posted by Ivan, but they display correctly on my computer.
>
> Can you post the steps you are using to reproduce it?
>
> For instance, this is what I'm doing in my case:
> 1) Close all copies of Cardapio
> 2) Remove Cardapio's config file ( mv ~/.config/Cardapio/config.json
> ~/.config/Cardapio/config.json.bak )
> 3) Create a folder named "Документы"
> 4) Open Cardapio, navigate to the folder above: it correctly says
> "Документы"
>
> Other things I tried:
> a) Add "Документы" to Nautilus bookmarks
> b) Look inside Cardapio: The folder correctly says "Документы" under the
> "Places" group
> c) Right-click on "Документы" in Cardapio and pin it (or add to side pane)
> d) Look inside Cardapio and see that the name correctly says "Документы" in
> the "Pinned Items" group (and in the side pane).
>
> I don't know what else to try. What am I missing?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/820200
>
> Title:
> Corrupted cyrillic (russian) names of folders (Cardapio 0.9.188 and
> 0.9.189!)
>
> Status in Cardapio:
> Fix Released
>
> Bug description:
> Output of Terminal:
> (cardapio:7381): GConf-CRITICAL **: gconf_client_add_dir: assertion
> `gconf_valid_key (dirname, NULL)' failed
> (cardapio:7381): Bonobo-WARNING **: Never got frame, control died -
> abnormal exit condition
>
> ~/.cache/Cardapio/cardapio.log is empty
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cardapio/+bug/820200/+subscriptions
>

Revision history for this message
Thiago Teixeira (tvst) wrote :

Are you talking about Nautilus bookmarks? Or Cardapio pinned items?

Revision history for this message
Thiago Teixeira (tvst) wrote :

Oh, I re-read your comment and now I get it. Can you attach here your "user-dirs" files?

I mean these:
~/.config/user-dirs.dirs
~/.config/user-dirs.locale

Revision history for this message
Ivan (boitzov-ivan) wrote :
description: updated
Revision history for this message
Thiago Teixeira (tvst) wrote :

Funny, even with those user-dirs, I still can't reproduce this bug. The names look perfect here.

Can you try the latest version from trunk just to be sure?
Here's how: https://answers.launchpad.net/cardapio/+faq/1352

Revision history for this message
Roman Bazalevsky (rvbglas) wrote :

Same problem with trunk version.

Revision history for this message
Roman Bazalevsky (rvbglas) wrote :

Trying some debug output (name/path):

%D0%94%D0%BE%D0%BA%D1%83%D0%BC%D0%B5%D0%BD%D1%82%D1%8B file:///home/rvb/%D0%94%D0%BE%D0%BA%D1%83%D0%BC%D0%B5%D0%BD%D1%82%D1%8B

%D0%9C%D1%83%D0%B7%D1%8B%D0%BA%D0%B0 file:///home/rvb/%D0%9C%D1%83%D0%B7%D1%8B%D0%BA%D0%B0

%D0%98%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D1%8F file:///home/rvb/%D0%98%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D1%8F

%D0%92%D0%B8%D0%B4%D0%B5%D0%BE file:///home/rvb/%D0%92%D0%B8%D0%B4%D0%B5%D0%BE

Revision history for this message
Roman Bazalevsky (rvbglas) wrote :

Just added urllib2.unquote:

               for line in bookmark_file.readlines():
                        if line.strip(' \n\r\t'):

                                name, path = self._get_place_name_and_path(line)
                                name = urllib2.unquote( name )
                                path_type, dummy = urllib2.splittype(path)

                                gio_path_obj = gio.File(path)
                                if not gio_path_obj.query_exists() and path_type not in Cardapio.REMOTE_PROTOCOLS: continue

                                self._add_place(name, path, 'folder')

And it works now!

Revision history for this message
Thiago Teixeira (tvst) wrote :

Nice, I will give it a try and get back to you! Thanks :)

Revision history for this message
Thiago Teixeira (tvst) wrote :

Just pushed this fixed to trunk Sorry for the delay, I've been busy!

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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