This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
strchr problem
- From: Leandro Fanzone <leandro at hasar dot com>
- To: ecos-discuss at sourceware dot org
- Date: Fri, 22 Sep 2006 17:32:20 -0300
- Subject: [ECOS] strchr problem
Hello there. I'm having a rather serious problem using strchr with
accented letters. The following code:
char *s = strchr("Leándro",'á');
returns NULL; however,
char *s = strchr("ándro",'á');
works OK. I'm using eCos 2.0 on i386, with
1) "Inline versions of <string.h> functions" enabled
2) "Optimize string functions for code size" disabled
Though I know I can easily write my own strchr, I thought it would be
useful to report it.
--
Leandro Fanzone
http://www.seikilos.com.ar
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss