Re: [gnome-print] latin2 (i18n?) problems
- From: Tomas Pluskal <plusik pohoda cz>
- To: Lauris Kaplinski <lauris ximian com>
- cc: gnome-print ximian com
- Subject: Re: [gnome-print] latin2 (i18n?) problems
- Date: Fri, 8 Mar 2002 13:51:38 +0100 (CET)
Thanks for advice, the testprint worked ok, so I started investigation in
gedit & gnumeric sources, and I found out that the problem is probably in
FreeBSD implementation of multibyte(3) functions. I have written a sample
program:
------ test.c -----------------------------
#include <stdlib.h>
#include <locale.h>
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;
}
-------------------------------------------
It should output a "s" with hook (unicode 0x161) character, but it outputs
just "a". In linux it outputs hooked s correctly!
Bye
Tomas Pluskal
On 8 Mar 2002, Lauris Kaplinski wrote:
> Hello!
>
> There can be different issues involved.
> Can you please do the following test:
>
> 1. Create some utf-8 text with latin2 glyphs (I think iconv
> can convert existing iso-8859-2 or something to utf-8 without
> problems)
> 2. In gnome-print source tree, experiment with:
>
> tests/testprint4 --preview your_file_name
> tests/testprint your_file_name
>
> It takes utf-8 input, asks you to choose font, layouts trivial page out
> of it, and either displays it on preview, or lets you to choose
> target printer.
> So you can verify, whether font reencodings etc. actually work.
>
> I do not know about gedit, but gnumeric assumes your text to
> be in current locale - EVEN IF X FONT USED IS SOMETHING DIFFERENT.
> So you may want to try to experiment with setting locale
> environment variables - I do not know exactly, which one is
> used to determine text encoding.
>
> Hope that helps
>
> Best wishes,
> Lauris Kaplinski
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]