Name of folders before <parent> entry

Bug #1526916 reported by kaputtnik
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Low
Unassigned

Bug Description

If a folder is created with uppercase letters, it appears before the <parent> entry.

Steps to reproduce:
1. start editor
2. open "save map"
3. Create new folder with an uppercase first character (f.e. "Alphabet")

Result:
The folder appears before the <parent> entry.

Normally the entry to switch to parent folder is always on top of a file list.

Related branches

Revision history for this message
kaputtnik (franku) wrote :
GunChleoc (gunchleoc)
tags: added: internationalization ui
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for reporting.

Indeed, directories created with an uppercase letter takes precedence over the <parent> entry. I am not sure why, though I would expect the ordering to take all characters into account since the names might be translated and start with characters not present in the English alphabet. In any case, I believe special characters should be listed before all variations of letters though.

Slightly related, I experimented a bit with special characters in file names which lead me to bug 1530124.

Changed in widelands:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
GunChleoc (gunchleoc) wrote :

This is because the sorting is done according to the letters' internal code representation, rather than using a lexical sorting order. We should be able to fix this eventually by using ICU locale information for the sorting.

GunChleoc (gunchleoc)
Changed in widelands:
status: Confirmed → In Progress
assignee: nobody → GunChleoc (gunchleoc)
milestone: none → build19-rc1
SirVer (sirver)
Changed in widelands:
status: In Progress → Fix Committed
assignee: GunChleoc (gunchleoc) → nobody
GunChleoc (gunchleoc)
Changed in widelands:
status: Fix Committed → Fix Released
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build19-rc1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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