From owner-freebsd-bugs Fri Mar 8 4:50:27 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from s096-n062.tele2.cz (s096-n062.tele2.cz [213.246.96.62]) by hub.freebsd.org (Postfix) with ESMTP id DDB4537B416; Fri, 8 Mar 2002 04:50:18 -0800 (PST) Received: from localhost (plusik@localhost) by s096-n062.tele2.cz (8.11.6/8.11.6) with ESMTP id g28CmIp34561; Fri, 8 Mar 2002 13:48:18 +0100 (CET) (envelope-from plusik@pohoda.cz) X-Authentication-Warning: s096-n062.tele2.cz: plusik owned process doing -bs Date: Fri, 8 Mar 2002 13:48:18 +0100 (CET) From: Tomas Pluskal X-X-Sender: plusik@s096-n062.tele2.cz To: freebsd-i18n@freebsd.org, Subject: multibyte(3) functions not working ? Message-ID: <20020308134119.J214-100000@s096-n062.tele2.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello, I was trying to make gnumeric & gedit print Czech characters on my freebsd system, and after few hours of investigation I found out that the problem is probably in freebsd. Here is a simple program, that should convert unicode character 0x161 (it's "s" with hook above) to multibyte (in this case "singlebyte") character, but it outputs just "a". Why ? I have tried it on a linux box also, and there it works perfectly. ------ test.c ----------------------------- #include #include int main(int argc, char *argv[]) { char s[1024]; int x; setlocale(LC_ALL, "cs_CZ.ISO8859-2"); x=wctomb(s, 0x0161); printf("char count: %d\nchar: %c\n",x,s[0]); return 0; } ------------------------------------------- Thanks Tomas Pluskal To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message