This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]