mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
![Ben Hutchings](/assets/img/avatar_default.png)
Currently the encoding of documents generated by DocBook depends on the current locale. Make the output reproducible independently of the locale, by setting the encoding to UTF-8 (LC_CTYPE=C.UTF-8) by preference, or ASCII (LC_CTYPE=C) as a fallback. LC_CTYPE can normally be overridden by LC_ALL, but the top-level Makefile unsets that. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> [jc: added check-lc_ctype to .gitignore] Signed-off-by: Jonathan Corbet <corbet@lwn.net>
11 lines
201 B
C
11 lines
201 B
C
/*
|
|
* Check that a specified locale works as LC_CTYPE. Used by the
|
|
* DocBook build system to probe for C.UTF-8 support.
|
|
*/
|
|
|
|
#include <locale.h>
|
|
|
|
int main(void)
|
|
{
|
|
return !setlocale(LC_CTYPE, "");
|
|
}
|