|
From: | Paul Eggert |
Subject: | bug#18051: [Emacs-diffs] trunk r117726: Add string collation. |
Date: | Wed, 27 Aug 2014 12:00:29 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 |
First, the code should use wcscoll_t rather than uselocale, as uselocale modifies thread state and this is less robust; for example, it wasn't safe to call 'error' right after the first call to uselocale.
Second, if the locale is invalid, string-collate-lessp should throw an error, the same way it throws an error when the strings are invalid.
[Prev in Thread] | Current Thread | [Next in Thread] |