Closed
Description
If you run this test:
CREATE TEMPORARY TABLE table1 (column1 TEXT);
INSERT INTO table1 VALUES
('Barn'),
('beef'),
('bémol'),
('Bœuf'),
('boulette'),
('Bubble');
SELECT * FROM table1 ORDER BY column1 COLLATE "en_US"; --Gives the expected order
SELECT * FROM table1 ORDER BY column1 COLLATE "C"; --Gives "wrong" order
First SELECT
should gives this order:
- Barn
- beef
- bémol
- Bœuf
- boulette
- Bubble
But instead it gives (same result as COLLATE "C"
):
- Barn
- Bubble
- Bœuf
- beef
- boulette
- bémol
Works fine in Jessie version.
It's probably because current musl library version (1.1.16) does not support LC_COLLATE, so despite settings LANG variable, sorting data will be bytewise (C). LC_COLLATE should be added to musl version 1.1.17.