]> Savannah Git Hosting - gnulib.git/commit
localeinfo: record whether locale is simple
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 16 Dec 2019 08:27:15 +0000 (00:27 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 16 Dec 2019 08:56:46 +0000 (00:56 -0800)
commit74324f05db859cb125fe7ec2f33b80a6cbd40697
treece104c50abca0cf64c35196d6116789ea31a6b23
parent3a2a6ea2d90664ffef51e6f4be405ea63221dad2
localeinfo: record whether locale is simple

* lib/localeinfo.c (using_simple_locale): New function,
copied here from lib/dfa.c but with a change: it uses
strcoll for its heuristic, instead of using setlocale.
This lets it be thread-safe.
* lib/localeinfo.h (struct localeinfo): New member ‘simple’.
ChangeLog
lib/localeinfo.c
lib/localeinfo.h