This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


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

Language Problems with cygwin (newlib/ctype)


hello

i'm having problems with the newlib package
especially the module "ctype.h" which is responsible for recognizing
characters
the problem is, that it doesnt recognize UTF-8 characters like umlauts or
accents

first i tried to solve it by setting the enviroment variables to

LANG=de
LC_CTYPE=de etc.

but had no effect, then i recognized that ctype is hardcoding the
definition of characters
so i enhanced the table in "ctype_.c" like this

#define _CTYPE_DATA_0_127 \
     _C,  _C,  _C,  _C,  _C,  _C,  _C,   _C, \
     _C,  _C|_S,    _C|_S,    _C|_S,     _C|_S,    _C|_S,    _C,  _C, \
     _C,  _C,  _C,  _C,  _C,  _C,  _C,   _C, \
     _C,  _C,  _C,  _C,  _C,  _C,  _C,   _C, \
     _S|_B,    _P,  _P,  _P,  _P,  _P,   _P,  _P, \
     _P,  _P,  _P,  _P,  _P,  _P,  _P,   _P, \
     _N,  _N,  _N,  _N,  _N,  _N,  _N,   _N, \
     _N,  _N,  _P,  _P,  _P,  _P,  _P,   _P, \
     _P,  _U|_X,    _U|_X,    _U|_X,     _U|_X,    _U|_X,    _U|_X,    _U,
\
     _U,  _U,  _U,  _U,  _U,  _U,  _U,   _U, \
     _U,  _U,  _U,  _U,  _U,  _U,  _U,   _U, \
     _U,  _U,  _U,  _P,  _P,  _P,  _P,   _P, \
     _P,  _L|_X,    _L|_X,    _L|_X,     _L|_X,    _L|_X,    _L|_X,    _L,
\
     _L,  _L,  _L,  _L,  _L,  _L,  _L,   _L, \
     _L,  _L,  _L,  _L,  _L,  _L,  _L,   _L, \
     _L,  _L,  _L,  _P,  _P,  _P,  _P,   _C

#define _CTYPE_DATA_128_256 \
     0,   0,   _P,  0,   _P,  0,   0,    0, \
     _P,  _P,  _U,  _P,  _U,  0,   _U,   0, \
     0,   _P,  _P,  _P,  _P,  _P,  _P,   _P, \
     _P,  _U|_L,    _L,  _P,  _L,  0,    _L,  _L, \
     0,   _P,  _P,  _P,  _P,  _P,  _P,   _P, \
     0,   _U|_L,    _P,  _P,  _P,  _P,   _P,  _P, \
     _P,  _P,  _P,  _P,  _P,  _P,  _P,   _P, \
     _P,  _P,  _P,  _P,  _P,  _P,  _P,   _P, \
     _U,  _U,  _U,  _U,  _U,  _U,  _U,   _U, \
     _U,  _U,  _U,  _U,  _U,  _U,  _U,   _U, \
     _U,  _U,  _U,  _U,  _U,  _U,  _U,   _P, \
     _P,  _U,  _U,  _U,  _U,  _U,  _L,   _L, \
     _L,  _L,  _L,  _L,  _L,  _L,  _L,   _L, \
     _L,  _L,  _L,  _L,  _L,  _L,  _L,   _L, \
     _L,  _L,  _L,  _L,  _L,  _L,  _L,   _P, \
     _P,  _L,  _L,  _L,  _L,  _L,  _L,   _L

i compiled the newlib as it is described in the readme files......
and got files like "libc.a, libg.a, libm.a"
those i copied in the path "/lib"
and the other paths where the old libc.a was found
and recompiled my testprogram but it had no effect........

im really at the end of what i can do to fix this bug and really
superceeded my knowledge
in cygwin and what can be found of documentation in the internet.

although i think this is a very internal problem..........

thanks for any help

Felix



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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