From d85536af73dc5d327075d983abfa69d70e129d20 Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Sat, 2 Jun 2001 21:46:42 +0000 Subject: Add locale-enabled strcoll function from vodz, plus supporting tool. --- extra/locale/gen_ctype_from_glibc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'extra/locale/gen_ctype_from_glibc.c') diff --git a/extra/locale/gen_ctype_from_glibc.c b/extra/locale/gen_ctype_from_glibc.c index 5cbceb052..0488048cd 100644 --- a/extra/locale/gen_ctype_from_glibc.c +++ b/extra/locale/gen_ctype_from_glibc.c @@ -19,8 +19,9 @@ #include #include #include +#include -#include "../../misc/ctype/ctype.h" +#include "../../libc/misc/locale/_locale.h" #define DEFAULT_LOCALE_DIR "/usr/share/locale/" @@ -229,7 +230,7 @@ Defaults:\n\ printf("setlocale(LC_CTYPE, %s) returned %s\n", ln, t); if(t==0) continue; - if(mkdir(ln, 0755)) { + if(mkdir(ln, 0755)!=0 && errno!=EEXIST) { fprintf(stderr, "Can`t create directory `%s'\n", ln); continue; } -- cgit v1.2.3