#341 Sorting by name with hu_HU.utf8 locale

closed
nobody
None
5
2010-09-30
2010-09-13
Arpione
No

When the locale is set to hu_HU.utf8 and PCManFM is set to sort by name then it sorts files and folders in a strange way (see attachment).

Output of "locale -a" is:

C
en_US
en_US.iso88591
en_US.utf8
hu_HU
hu_HU.iso88592
hu_HU.utf8
hungarian
POSIX

I tested all of them and this behaviour only occurs with $LANG set to "hu_HU.utf8".
With only lowercase folders like the ones in "/usr/share" it seems to sort from q to z and a to p.

System:
Arch Linux x86_64

Discussion

  • Arpione

    Arpione - 2010-09-13
     
  • Arpione

    Arpione - 2010-09-13

    I forgot to mention that I'm using version 0.9.7

     
  • PCMan

    PCMan - 2010-09-23

    The latest pcmanfm built on top of glib/gio doesn't have this problem. Please test the latest source code in git repository.

     
  • PCMan

    PCMan - 2010-09-23
    • status: open --> pending
     
  • Arpione

    Arpione - 2010-09-29
    • status: pending --> open
     
  • Arpione

    Arpione - 2010-09-29

    I installed the latest version from the git repository as pcmanx suggested and it works fine now.

    shamuayka:
    In my case changing to other sort method then changing back to "sort by name" doesn't work.

     
  • Arpione

    Arpione - 2010-09-30
    • status: open --> closed
     
  • Sérgio Cipolla

    Sérgio Cipolla - 2010-09-30

    I've been using for a while and it's working fine but the shuffled order still occurs for the files/folders in the desktop.
    It's no identifiable order and I can reorder them fine but the next session they come up shuffled again (only rebooted once; if this doesn't confirm I update here).

     
  • PCMan

    PCMan - 2010-10-01

    shamuayka:
    Then the cause is quite apparent. You installed old version of libfm-gtk which contains the bug. The version provided by Debian is quite old and it still has the bug. You need the libfm code in git repo.
    So, I believe that the bug is fixed.

     
  • Sérgio Cipolla

    Sérgio Cipolla - 2010-10-01

    Hi pcman,
    I purged libfm0 and libfm-gtk0 (Debian has those two packages), installed the one from git and the behaviour is the same.
    pcmanfm is working fine in this respect now but the desktop folders and files are in some undefined sorting (always the same, i. e., it obeys to some order but not to any of the four pre-defined ones).
    See http://yfrog.com/5ccapturadetela3gp

     
  • Sérgio Cipolla

    Sérgio Cipolla - 2010-10-01

    Here you can see how it's ok in the file manager but 'out of order' in the desktop: http://yfrog.com/83capturadetela4vp

    In my opinion, the most important is the file manager window but it seems there's still some bug hidden in the --desktop option.

     
  • Sérgio Cipolla

    Sérgio Cipolla - 2010-10-06

    PCMan, I have been testing the git versions these days and this morning the shuffled order regressed. Even in the file manager window it opens with that undefined order again the first time it's opened.
    Now a while back I updated yet again with the version that has movable icons support and it keeps this behaviour of shuffled ordering at the first opening.

     
  • Sérgio Cipolla

    Sérgio Cipolla - 2010-10-14

    Well, this issue persists with the latest released experimental versions of libfm and pcmanfm. But I noticed something interesting today: the wrong order happens for normal users but for the root user pcmanfm opens with the correct order.
    Download a little video of this behaviour from http://www.sendspace.com/file/ivo2sd

     
  • Sérgio Cipolla

    Sérgio Cipolla - 2010-10-21

    Hope it's ok to keep posting here even with this bug 'closed'. If it's preferred to open yet another bug please tell me.

    This is what I found out:
    The bug is due to the '--profile' option.
    I reinstalled pcmanfm (latest libfm and pcmanfm from git) and opened it from inside GNOME. Guess what? It opened with files/folders correctly sorted by name.
    So I removed the '--desktop' option from /etc/xdg/lxsession/LXDE/autostart (originally '@pcmanfm --desktop --profile LXDE') to see if what was causing that misbehaviour was the '--desktop' option and logged into LXDE. What happened? pcmanfm opened with the messed up ordering.
    Then I looked into ~/.config/pcmanfm and saw something interesting: the file LXDE/pcmanfm.conf was quite different from the file default/pcmanfm.conf.

    -default:
    [ui]
    always_show_tabs=0
    hide_close_btn=0
    win_width=640
    win_height=480
    splitter_pos=150
    view_mode=0
    show_hidden=0
    sort_type=0
    sort_by=2

    -LXDE:
    [ui]
    always_show_tabs=0
    hide_close_btn=0
    win_width=640
    win_height=480
    view_mode=0
    show_hidden=0
    sort_type=0
    sort_by=0

    And more: the first time I changed the ordering, it was written to LXDE/pcmanfm.conf (and then I thought that was right since I was in an LXDE session) but the subsequent times I changed the ordering it was written to default/pcmanfm.conf (now we're getting closer...).
    So I logged out of LXDE, deleted ~/.config/pcmanfm/LXDE and this time I put back the '--desktop' option and removed the '--profile LXDE' option from /etc/xdg/lxsession/LXDE/autostart. Then logged back in. So? pcmanfm opened with files/folders ordered correctly. (Note: the order in the desktop itself was wrong as always)
    So I went to look at ~/.config/pcmanfm and found this messy thing: LXDE/pcmanfm had created both LXDE/pcmanfm.conf and the old lxde.conf file. LXDE/pcmanfm.conf this time was right and was a blend of LXDE's' own settings (like the wallpaper) and the (right) settings at default/pcmanfm.conf while lxde.conf had the wrong settings that would have been copied to LXDE/pcmanfm.conf if pcmanfm had been started with the '--profile LXDE' option.

    So it seems old and new default settings are mixed up. Maybe lxsession will have to be tweaked? Or is something that remained in libfm's/pcmanfm's code?

    Now I'll check that problem that pcmanfm/LXDE was giving of overwriting its preferences at every login. I'll keep without the '--profile LXDE' option and see how it goes. Then I may open a separate bug report for it.

     


Anonymous

Cancel  Add attachments