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
@@ -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, "");
+}