Hi,

Le 19/05/2016 03:11, Maciej Katafiasz a écrit :
On 18 May 2016 at 16:18, Cyril Bonté <cyril.bo...@free.fr> wrote:
Le 19/05/2016 00:34, Maciej Katafiasz a écrit :
While potentially
confusing, forcing it to C is also confusing and prevents people from
actually exploiting locale should they want to, and traditionally the
Unix approach was to let the administrator get the locale right, so
it's also more consistent with how other software does it.


Which ones ? As previously said, nor apache httpd and nginx do that with
their respective "include" directive, at least. Why would we want to make it
differently ?

Postgresql for example [...]

Sorry but no, it doesn't. The "include_dir" directive in PosgreSQL uses readdir() which doesn't have any sorting guarantee, fills an array with the filenames, then calls qsort() on the arrray with strcmp() as the comparator function.

They also document this in their documentation :
"Multiple files within an include directory are processed in file name order (according to C locale rules, i.e. numbers before letters, and uppercase letters before lowercase ones)." and they have the good idea to provide some good practices about naming convention.

--
Cyril Bonté

Reply via email to