| Summary: | Patch for Swedish LC_COLLATE | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | girgen <girgen> | ||||
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 3.3-STABLE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
State Changed From-To: open->closed Fix commited to -current |
Swedish sorting order is completey wrong in all versions of FreeBSD up till today. This patch tries to fix this. I say _tries_ because a truly correct sorting order in Swedish would sort 'V' and 'W' interchangebly, i.e. Waldemar and Valdemar has the same 'value', and Waldamar will sort before Valdemar. Same goes for Norwegian '<ae>' and '<o/>', which probably should together with <a:> and <o:> respectively. I've tried enclosing the character groups in both () and {}, the latter which somewhat cryptically is stated in the manual to give the characters the same primary value only. The act the same, though :( Apart from these drawbacks, this patch is rather important for Swedish users who want to use the FreeBSD platform with for example databases. They are expected to sort correctly, but they don't. Please commit this patch. :-) How-To-Repeat: How to test it: - patch - rebuild world (or relevant parts thereof [which aren't just colldef]) - export LC_COLLATE=sv_SE.ISO_8859-1 cat | sort Adam Ådaa Odem Öde Äta Att ^D You should get: Adam Att Odem Ådaa Äta Öde