diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2001-06-02 21:46:42 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2001-06-02 21:46:42 +0000 |
commit | d85536af73dc5d327075d983abfa69d70e129d20 (patch) | |
tree | 21e6939a55be15151ab986f945a52587b950cf89 /extra/locale/gen_ctype_from_glibc.c | |
parent | 4f8c656e408ff31d081c8f1302cb7adff409ebb8 (diff) |
Add locale-enabled strcoll function from vodz, plus supporting tool.
Diffstat (limited to 'extra/locale/gen_ctype_from_glibc.c')
-rw-r--r-- | extra/locale/gen_ctype_from_glibc.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <string.h> #include <getopt.h> #include <unistd.h> +#include <errno.h> -#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; } |