#31 Ordering of lists using locale

Unstable_(example)
closed
nobody
None
5
2013-11-30
2013-02-21
No

The file lists are ordered without using the locale. The attached patch uses the functions wcscasecmp and wcscoll to compare and give correct order in user's language when it is possible to transform the file names to the encoding of the current locale or simple comparision when it is not possible. Tested on adJ.

Discussion

  • Vladimir Támara Patińo

    The patches are release to the public domain according to the colombian legislation.

     
  • Roland Baudin

    Roland Baudin - 2013-08-19

    Hi Vladimir,

    I tried your patch but it does anything for me. For example, I tried to order the following files: aaaa, bbbb, eeee, uuuu, àààà, éééé, ùùùù using the french locale. Under Nautilus, the files are ordered like this :

    aaaa
    àààà
    bbbb
    eeee
    éééé
    uuuu
    ùùùù

    which is correct. Using Xfe, with or without the patch, the files are ordered like this:

    aaaa
    bbbb
    eeee
    uuuu
    àààà
    éééé
    ùùùù

    which is not correct.

    Do you have any idea about the reason why your patch doesn't work? Could you give me some support about it?
    Thanks in advance,
    RB

     
  • Roland Baudin

    Roland Baudin - 2013-10-08

    Ok, I finally found the problem: it was just because ignore case was checked. In the latter situation, accents seem to be just another case of the characters, so they are ignored.
    Thus your patch works very well and I integrated it into Xfe version 1.37.
    Thanks a lot!
    RB

     
  • Roland Baudin

    Roland Baudin - 2013-11-28
    • status: open --> closed
    • Group: --> Unstable_(example)
     
  • Roland Baudin

    Roland Baudin - 2013-11-28

    So the patch is implemented in Xfe 1.37.
    Many thanks for your work,
    RB

     
  • Vladimir Támara Patińo

    Great! Thank you.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks