+2007-03-04 Bruno Haible <bruno@clisp.org>
+
+ * lib/propername.c (proper_name, proper_name_utf8): Use mbsstr instead
+ of strstr.
+ * modules/propername (Depends-on): Remove strstr. Add mbsstr.
+
2007-03-04 Bruno Haible <bruno@clisp.org>
Moved --enable-relocatable infrastructure to gnulib.
if (translation != name)
{
/* See whether the translation contains the original name. */
- if (strstr (translation, name) != NULL)
+ if (mbsstr (translation, name) != NULL)
return translation;
else
{
The multibyte-aware mbsstr() is not absolutely necessary here. */
if (c_strstr (translation, name_ascii) != NULL
|| (name_converted != NULL
- && strstr (translation, name_converted) != NULL)
+ && mbsstr (translation, name_converted) != NULL)
|| (name_converted_translit != NULL
- && strstr (translation, name_converted_translit) != NULL))
+ && mbsstr (translation, name_converted_translit) != NULL))
{
if (alloc_name_converted != NULL)
free (alloc_name_converted);