[Freeciv-Dev] Re: main map have gtk1.2 font problem (i18n) (PR#1606)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Fri, 28 Jun 2002, SAWADA Katsuya wrote:
> Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx> writes:
> > I'll fix that by checking a FREECIV_NETWORK_CHARSET environment variable.
> > In your case you could set that to UTF-8 or EUC-JP.
>
> I checked out current CVS source, and compiled.
>
> I can see correct characters in euc-jp terminal and gtk-2.0 window
> with LANG=ja_JP.eucJP, and also utf8 terminal and gtk-2.0 window with
> LANG=ja_JP.UTF-8. Thank you very very much.
>
> But, You may know, when client (LANG=ja_JP.eucJP
> FREECIV_NETWORK_CHARSET=UTF-8) connect server (LANG=ja_JP.UTF-8), I
> get some problem. For example, I can't invoke command from client like
> '/list', and I can't send any message using jisx0208 character set to
With that combination I can do a /list fine here.
> other user. (ascii character set is ok.) There is same problem using
Yes I can't do that here either. This seems to be the problem:
server/handchat.c:166:
if(!my_isprint(*cp & 0x7f)) {
*cp='\0';
break;
}
Comment that and it works. There are probably more places like that in
the code.
> client(LANG=ja_JP.eucJP FREECIV_NETWORK_CHARSET=EUC-JP) and
> server(LANG=ja_JP.UTF-8), but this combination is better because error
> message is little. Following is sample error messages.
>
> 1: received bad string in packet (type 16, len 126) from server
> 1: received bad string in packet (type 16, len 36) from server
> 1: received bad string in packet (type 83, len 22) from server
> 1: received bad string in packet (type 71, len 22) from server
> ...
I assume that is because of this error:
"Translated name is too long, truncating".
That causes strings that are long to be mangled and things go sour
from then onwards.
> >> ** (glade-2:14041): WARNING **: Cannot load font for XLFD
> >> '-kochi-gothic-medium-r-normal--8-*-*-*-*-*-jisx0201.1976-0
> >
> >> I am fighting to solve the font problem.
> Now, I solved. The problems were /etc/pango/pangox.aliases and
> /etc/X11/XftConfig.
Ah. Good.
---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa
- [Freeciv-Dev] Re: main map have gtk1.2 font problem (i18n) (PR#1606), (continued)
- [Freeciv-Dev] Re: main map have gtk1.2 font problem (i18n) (PR#1606), Vasco Alexandre Da Silva Costa, 2002/06/25
- [Freeciv-Dev] Re: main map have gtk1.2 font problem (i18n) (PR#1606), Vasco Alexandre Da Silva Costa, 2002/06/25
- [Freeciv-Dev] Re: main map have gtk1.2 font problem (i18n) (PR#1606), Vasco Alexandre Da Silva Costa, 2002/06/25
- [Freeciv-Dev] Re: main map have gtk1.2 font problem (i18n) (PR#1606), Vasco Alexandre Da Silva Costa, 2002/06/25
- [Freeciv-Dev] Re: main map have gtk1.2 font problem (i18n) (PR#1606), Vasco Alexandre Da Silva Costa, 2002/06/25
- [Freeciv-Dev] Re: main map have gtk1.2 font problem (i18n) (PR#1606), Vasco Alexandre Da Silva Costa, 2002/06/26
- [Freeciv-Dev] Re: main map have gtk1.2 font problem (i18n) (PR#1606), Vasco Alexandre Da Silva Costa, 2002/06/28
|
|