summaryrefslogtreecommitdiff
path: root/libc/misc/locale/C_name.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/locale/C_name.c')
-rw-r--r--libc/misc/locale/C_name.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/misc/locale/C_name.c b/libc/misc/locale/C_name.c
new file mode 100644
index 000000000..fa2ac0539
--- /dev/null
+++ b/libc/misc/locale/C_name.c
@@ -0,0 +1,8 @@
+/* Define a constant for the name of the standard C locale, so the string
+ constant is not repeated in dozens of object files. */
+
+#include "localeinfo.h"
+
+/* Name of our standard locale. */
+const char _nl_C_name[] = "C";
+const char _nl_POSIX_name[] = "POSIX";