backupfile.obj addext.obj \
basename.obj \
c-ctype.obj \
+ c-strcasecmp.obj \
+ c-strncasecmp.obj \
classpath.obj \
closeout.obj \
copy-file.obj \
c-ctype.obj : c-ctype.c
$(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c c-ctype.c
+c-strcasecmp.obj : c-strcasecmp.c
+ $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c c-strcasecmp.c
+
+c-strncasecmp.obj : c-strncasecmp.c
+ $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c c-strncasecmp.c
+
classpath.obj : classpath.c
$(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c classpath.c
backupfile.obj, addext.obj, \
basename.obj, \
c-ctype.obj, \
+ c-strcasecmp.obj, \
+ c-strncasecmp.obj, \
classpath.obj, \
closeout.obj, \
copy-file.obj, \
c-ctype.obj : c-ctype.c
$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) c-ctype.c
+c-strcasecmp.obj : c-strcasecmp.c
+ $(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) c-strcasecmp.c
+
+c-strncasecmp.obj : c-strncasecmp.c
+ $(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) c-strncasecmp.c
+
classpath.obj : classpath.c
$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) classpath.c
+2005-02-07 Bruno Haible <bruno@clisp.org>
+
+ Make the tools work in the tr_TR locale.
+ * po-charset.c: Include c-strcase.h instead of strcase.h.
+ (po_charset_canonicalize): Use c_strcasecmp.
+ * msgcmp.c: Include c-strcase.h instead of strcase.h.
+ (compare): Use c_strncasecmp.
+ * msginit.c: Include c-strcase.h instead of strcase.h.
+ (content_type): Use c_strcasecmp.
+ * msgmerge.c: Include c-strcase.h instead of strcase.h.
+ (message_merge, merge): Use c_strncasecmp.
+ * xgettext.c: Include c-strcase.h instead of strcase.h.
+ (language_to_extractor): Use c_strcasecmp.
+ Reported by Recai Oktas <roktas@omu.edu.tr>.
+
2005-02-07 Bruno Haible <bruno@clisp.org>
* project-id: Use LC_ALL=C to protect range expression against
#include "read-po.h"
#include "msgl-iconv.h"
#include "strstr.h"
-#include "strcase.h"
+#include "c-strcase.h"
#include "gettext.h"
#define _(str) gettext (str)
charsetstr += strlen ("charset=");
len = strcspn (charsetstr, " \t\n");
if (len == strlen ("UTF-8")
- && strncasecmp (charsetstr, "UTF-8", len) == 0)
+ && c_strncasecmp (charsetstr, "UTF-8", len) == 0)
was_utf8 = true;
}
}
#include "basename.h"
#include "strpbrk.h"
#include "strstr.h"
-#include "strcase.h"
+#include "c-strcase.h"
#include "message.h"
#include "read-po.h"
#include "write-po.h"
if (charsetstr != NULL)
{
charsetstr += strlen ("charset=");
- was_utf8 = (strcasecmp (charsetstr, "UTF-8") == 0);
+ was_utf8 = (c_strcasecmp (charsetstr, "UTF-8") == 0);
}
}
return xasprintf ("text/plain; charset=%s",
#include "obstack.h"
#include "strstr.h"
#include "exit.h"
-#include "strcase.h"
+#include "c-strcase.h"
#include "stpcpy.h"
#include "stpncpy.h"
#include "msgl-iconv.h"
for (cnt = 0;
cnt < sizeof (known_fields) / sizeof (known_fields[0]);
++cnt)
- if (strncasecmp (cp, known_fields[cnt].name, known_fields[cnt].len)
+ if (c_strncasecmp (cp, known_fields[cnt].name, known_fields[cnt].len)
== 0)
break;
charsetstr += strlen ("charset=");
len = strcspn (charsetstr, " \t\n");
if (len == strlen ("UTF-8")
- && strncasecmp (charsetstr, "UTF-8", len) == 0)
+ && c_strncasecmp (charsetstr, "UTF-8", len) == 0)
was_utf8 = true;
}
}
/* Charset handling while reading PO files.
- Copyright (C) 2001-2004 Free Software Foundation, Inc.
+ Copyright (C) 2001-2005 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software; you can redistribute it and/or modify
#include "basename.h"
#include "progname.h"
#include "strstr.h"
-#include "strcase.h"
+#include "c-strcase.h"
#include "gettext.h"
#define _(str) gettext (str)
size_t i;
for (i = 0; i < SIZEOF (standard_charsets); i++)
- if (strcasecmp (charset, standard_charsets[i]) == 0)
+ if (c_strcasecmp (charset, standard_charsets[i]) == 0)
return standard_charsets[i < 3 ? 0 : i < 27 ? ((i - 3) & ~1) + 3 : i];
return NULL;
}
#include "xerror.h"
#include "exit.h"
#include "pathname.h"
-#include "strcase.h"
+#include "c-strcase.h"
#include "stpcpy.h"
#include "open-po.h"
#include "read-po-abstract.h"
table_ty *tp;
for (tp = table; tp < ENDOF(table); ++tp)
- if (strcasecmp (name, tp->name) == 0)
+ if (c_strcasecmp (name, tp->name) == 0)
{
extractor_ty result;