projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
DocBook: Use a fixed encoding for output
[linux-2.6-block.git]
/
scripts
/
check-lc_ctype.c
diff --git a/scripts/check-lc_ctype.c
b/scripts/check-lc_ctype.c
new file mode 100644
(file)
index 0000000..
9097ff5
--- /dev/null
+++ b/
scripts/check-lc_ctype.c
@@ -0,0
+1,11
@@
+/*
+ * 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, "");
+}