Hi, Yoann Vandoorselaere wrote: > Attached is a patch that implement strcasestr() in GNUlib.
Your implementation, like the one in glibc, does not work correctly in multibyte locales. I'm not sure it's useful to add more functions to gnulib that do not work correctly in multibyte locales. Yes we added strcasecmp and strncasecmp, because they are POSIX. But strcasestr is not in POSIX. Instead, can you write an implementation that _does_ work correctly even in BIG5 locales? And then use it unconditionally in gnulib, not only #if !HAVE_STRCASESTR. Bruno _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib