Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Subject: Language Problems with cygwin (newlib/ctype) To: cygwin AT cygwin DOT com X-Mailer: Lotus Notes Release 5.0.4 June 8, 2000 Message-ID: From: felix DOT schaller AT twt-gmbh DOT de Date: Fri, 26 Oct 2001 09:00:36 +0200 X-MIMETrack: Serialize by Router on TWTNotes/Twt-Gmbh(Release 5.0.5 |September 22, 2000) at 26.10.2001 09:00:39 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii 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/