Gentoo Archives: gentoo-user

From: "de Almeida
To: gentoo-user@l.g.o
Subject: [gentoo-user] utf-8 puzzling behavior with cygwin xterms
Date: Fri, 21 Dec 2007 17:22:21
Message-Id: D2D7D9FE2492524A925313E2D82E1B53074A1AD3@ORNLEXCHANGE.ornl.gov
1 Hello,
2
3 I am experiencing a weird behavior of utf-8 when g++ sends compilation
4 info to the screen.
5
6 In one case (the "remote" case) I use a cygwin x-term to issue a ssh to
7 connect to the target machine B, but I must connect to a firewall
8 machine A first. Therefore I typically use a single command
9
10 ssh -X -t me@machineA ssh -X me@machineB
11
12 In this case, all g++ messages to the screen come out correctly. The
13 non-ascii characters are typically curved quotes.
14
15 In a second case I am local and do not need to login to the firewall
16 machine so I do
17
18 ssh -X me@machineB
19
20 Here the g++ messages to the screen come out wrong. Anything that is in
21 between curved quotes does not show up including the quotes. This has
22 the disruptive effect of making all compiler error messages useless
23 since the symbols between quotes are not visible and I can't tell what
24 the compiler is complaining about. All I see is the character *a* with a
25 circumflex accent on top of it.
26
27 I always thought the problem was the cygwin x-term not being able to
28 handle utf-8 but now I know this is not the problem since the remote
29 case works fine.
30
31 The puzzling thing is that if I am local but I do a remote login, I have
32 problems with non-ascii characters. However if I am non-local and I do
33 (need to) a remote login, everything is fine.
34
35 Sorry for the long description of the problem. Any insight appreciated.
36
37 Thanks,
38
39 --
40 Valmor
41
42
43 My locale is:
44
45 LANG=
46 LC_CTYPE="en_US.utf8"
47 LC_NUMERIC="en_US.utf8"
48 LC_TIME="en_US.utf8"
49 LC_COLLATE="en_US.utf8"
50 LC_MONETARY="en_US.utf8"
51 LC_MESSAGES="en_US.utf8"
52 LC_PAPER="en_US.utf8"
53 LC_NAME="en_US.utf8"
54 LC_ADDRESS="en_US.utf8"
55 LC_TELEPHONE="en_US.utf8"
56 LC_MEASUREMENT="en_US.utf8"
57 LC_IDENTIFICATION="en_US.utf8"
58 LC_ALL=en_US.utf8
59
60
61 ->emerge --info
62 Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0,
63 2.6.22.9 i686)
64 =================================================================
65 System uname: 2.6.22.9 i686 Intel(R) Xeon(TM) CPU 2.66GHz
66 Timestamp of tree: Sat, 17 Nov 2007 04:30:01 +0000
67 app-shells/bash: 3.2_p17
68 dev-java/java-config: 1.3.7, 2.0.33-r1
69 dev-lang/python: 2.4.4-r6
70 dev-python/pycrypto: 2.0.1-r6
71 sys-apps/baselayout: 1.12.9-r2
72 sys-apps/sandbox: 1.2.18.1-r2
73 sys-devel/autoconf: 2.13, 2.61-r1
74 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
75 sys-devel/binutils: 2.18-r1
76 sys-devel/gcc-config: 1.3.16
77 sys-devel/libtool: 1.5.24
78 virtual/os-headers: 2.6.22-r2
79
80
81 --
82 gentoo-user@g.o mailing list