From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-154445-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1CA21139329 for <garchives@archives.gentoo.org>; Sun, 9 Mar 2014 09:00:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9AEDCE0AFC; Sun, 9 Mar 2014 09:00:31 +0000 (UTC) Received: from lyseo.edu.ouka.fi (unknown [82.128.138.2]) by pigeon.gentoo.org (Postfix) with ESMTP id 1238AE0AAB for <gentoo-user@lists.gentoo.org>; Sun, 9 Mar 2014 09:00:30 +0000 (UTC) Received: from [10.174.156.84] (85-76-41-240-nat.elisa-mobile.fi [85.76.41.240]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by lyseo.edu.ouka.fi (Postfix) with ESMTPSA id E25BD193F980 for <gentoo-user@lists.gentoo.org>; Sun, 9 Mar 2014 11:00:28 +0200 (EET) Subject: Re: [gentoo-user] GBP character in KDE References: <201403081550.29197.michaelkintzios@gmail.com> <1835231.mgnvsVHEE3@melforce> <201403081810.39186.michaelkintzios@gmail.com> <201403081844.48473.michaelkintzios@gmail.com> From: Matti Nykyri <matti.nykyri@iki.fi> Content-Type: multipart/alternative; boundary=Apple-Mail-6DC488BA-BF6C-4F60-B8FD-2A73FF37A813 X-Mailer: iPhone Mail (9B206) In-Reply-To: <201403081844.48473.michaelkintzios@gmail.com> Message-Id: <C863CE91-C13D-4DB6-BD72-E24779A0744A@iki.fi> Date: Sun, 9 Mar 2014 11:00:23 +0200 To: "gentoo-user@lists.gentoo.org" <gentoo-user@lists.gentoo.org> Content-Transfer-Encoding: 7bit Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 (1.0) X-Archives-Salt: 3432421b-8785-4d91-a404-63d7d9e514fd X-Archives-Hash: 88f7e2e5670b6996bc506a5c2c68fb98 --Apple-Mail-6DC488BA-BF6C-4F60-B8FD-2A73FF37A813 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On Mar 8, 2014, at 20:44, Mick <michaelkintzios@gmail.com> wrote: > On Saturday 08 Mar 2014 18:10:21 Mick wrote: >> On Saturday 08 Mar 2014 17:42:07 Pavel Volkov wrote: >>> On Saturday 08 March 2014 15:50:27 Mick wrote: >>>> I can't understand why a PC that uses the KDE desktop always sticks an >>>>=20 >>>> accented capital "A" in front of the pound sign. It looks like this: >>>> =C3=82=C2=A3 >>>=20 >>> I don't have this problem in KDE (though I'm not using UK layout to type= >>> it). I use the additional X.Org layout called "typo" and type the pound >>> sign with AltGr+F. >>>=20 >>> What tool do you use to switch keyboard layouts and what are those >>> layouts? >>=20 >> This machine only has UK qwerty keyboard and UK locale. I don't switch >> into any other layouts. >>=20 >> I've just changed the default country in the KDE locale GUI from UK to 'N= o >> Country' and will restart the desktop as soon as I can kick a Luser off i= t, >> to see if it works. >=20 > The user logged out of KDE and back in and the darn thing still shows up. = :-/ >=20 > Any ideas what might be causing this? There is no problem with typing the= US=20 > dollar character key (Shift+4), but there is when pressing the GBP charact= er=20 > (Shift+3). >=20 > This is what xev shows when pressing and releasing Shift plus the key: >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > KeyPress event, serial 37, synthetic NO, window 0x4a00001, > root 0x15b, subw 0x4a00002, time 125124784, (30,32), root:(3052,475), > state 0x10, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES, > XLookupString gives 0 bytes:=20 > XmbLookupString gives 0 bytes:=20 > XFilterEvent returns: False >=20 > KeyPress event, serial 40, synthetic NO, window 0x4a00001, > root 0x15b, subw 0x4a00002, time 125128642, (30,32), root:(3052,475), > state 0x11, keycode 12 (keysym 0xa3, sterling), same_screen YES, > XLookupString gives 2 bytes: (c2 a3) "=C2=A3" > XmbLookupString gives 2 bytes: (c2 a3) "=C2=A3" > XFilterEvent returns: False >=20 > KeyRelease event, serial 40, synthetic NO, window 0x4a00001, > root 0x15b, subw 0x4a00002, time 125128772, (30,32), root:(3052,475), > state 0x11, keycode 12 (keysym 0xa3, sterling), same_screen YES, > XLookupString gives 2 bytes: (c2 a3) "=C2=A3" > XFilterEvent returns: False >=20 > KeyRelease event, serial 40, synthetic NO, window 0x4a00001, > root 0x15b, subw 0x4a00002, time 125128977, (30,32), root:(3052,475), > state 0x11, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES, > XLookupString gives 0 bytes:=20 > XFilterEvent returns: False > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >=20 > --=20 > Regards, > Mick When you press =C2=A3-symbol on your keyboard and are using a unicode keymap= U+00A3 unicode keypoint is created. When that is encoded to UTF-8 a 2-byte s= tring is created: 0x2CA3. Now when this string is displayed the software dis= playing the string needs to know the encoding of the string. If it is interp= reted as UTF-8 string you will see: =C2=A3. If it is interpreted as ISO-8859= -1 or CP1252 these both will produce: =C3=82=C2=A3. So what this means is that you have an in correct unicode configuration. In t= he console I have correct unicode setup. How ever when run command unicode_s= top I get =C3=82=C2=A3 and after I run unicode_start I will get =C2=A3 as I s= hould. When computer boots always starts with us layout and ascii map. It is upto y= our configuration to switch to your preferred layout and charmap. For X set your layout in xorg.conf.d in 10-evdev.conf (XkbLayout). Then test= that X has the correct keyboard layout: sudo Xorg :0 -ac -terminate & (slee= p 4 && DISPLAY=3D:0.0 xterm) If that works you should have the right layout in kde. Deleting kde config w= ill bring you the correct layout. For the console set unicode aware font in conf.d/consolefont and keymap in k= eymaps. And in rc.conf set unicode to yes. -- Matti --Apple-Mail-6DC488BA-BF6C-4F60-B8FD-2A73FF37A813 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head></head><body bgcolor=3D"#FFFFFF"><div><font class=3D"Apple-style= -span" color=3D"#000000"><span>On Mar 8, 2014, at 20:44, Mick <<a href=3D= "mailto:michaelkintzios@gmail.com" x-apple-data-detectors=3D"true" x-apple-d= ata-detectors-result=3D"2">michaelkintzios@gmail.com</a>> wrote:</span><b= r><span></span><br></font><blockquote type=3D"cite"><font class=3D"Apple-sty= le-span" color=3D"#000000"><span>On Saturday 08 Mar 2014 18:10:21 Mick wrote= :</span><br></font></blockquote><blockquote type=3D"cite"><blockquote type=3D= "cite"><font class=3D"Apple-style-span" color=3D"#000000"><span>On Saturday 0= 8 Mar 2014 17:42:07 Pavel Volkov wrote:</span><br></font></blockquote></bloc= kquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D= "cite"><font class=3D"Apple-style-span" color=3D"#000000"><span>On Saturday 0= 8 March 2014 15:50:27 Mick wrote:</span><br></font></blockquote></blockquote= ></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquot= e type=3D"cite"><blockquote type=3D"cite"><font class=3D"Apple-style-span" c= olor=3D"#000000"><span>I can't understand why a PC that uses the KDE desktop= always sticks an</span><br></font></blockquote></blockquote></blockquote></= blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote t= ype=3D"cite"><blockquote type=3D"cite"><font class=3D"Apple-style-span" colo= r=3D"#000000"><span></span><br></font></blockquote></blockquote></blockquote= ></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquot= e type=3D"cite"><blockquote type=3D"cite"><font class=3D"Apple-style-span" c= olor=3D"#000000"><span>accented capital "A" in front of the pound sign. &nbs= p;It looks like this:</span><br></font></blockquote></blockquote></blockquot= e></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquo= te type=3D"cite"><blockquote type=3D"cite"><font class=3D"Apple-style-span" c= olor=3D"#000000"><span>=C3=82=C2=A3</span><br></font></blockquote></blockquo= te></blockquote></blockquote><blockquote type=3D"cite"><blockquote type=3D"c= ite"><blockquote type=3D"cite"><font class=3D"Apple-style-span" color=3D"#00= 0000"><span></span><br></font></blockquote></blockquote></blockquote><blockq= uote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><font= class=3D"Apple-style-span" color=3D"#000000"><span>I don't have this proble= m in KDE (though I'm not using UK layout to type</span><br></font></blockquo= te></blockquote></blockquote><blockquote type=3D"cite"><blockquote type=3D"c= ite"><blockquote type=3D"cite"><font class=3D"Apple-style-span" color=3D"#00= 0000"><span>it). I use the additional <a href=3D"http://X.Org/" x-apple= -data-detectors=3D"true" x-apple-data-detectors-result=3D"6">X.Org</a> = layout called "typo" and type the pound</span><br></font></blockquote></bloc= kquote></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blo= ckquote type=3D"cite"><font class=3D"Apple-style-span" color=3D"#000000"><sp= an>sign with AltGr+F.</span><br></font></blockquote></blockquote></blockquot= e><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"ci= te"><font class=3D"Apple-style-span" color=3D"#000000"><span></span><br></fo= nt></blockquote></blockquote></blockquote><blockquote type=3D"cite"><blockqu= ote type=3D"cite"><blockquote type=3D"cite"><font class=3D"Apple-style-span"= color=3D"#000000"><span>What tool do you use to switch keyboard layouts and= what are those</span><br></font></blockquote></blockquote></blockquote><blo= ckquote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><f= ont class=3D"Apple-style-span" color=3D"#000000"><span>layouts?</span><br></= font></blockquote></blockquote></blockquote><blockquote type=3D"cite"><block= quote type=3D"cite"><font class=3D"Apple-style-span" color=3D"#000000"><span= ></span><br></font></blockquote></blockquote><blockquote type=3D"cite"><bloc= kquote type=3D"cite"><font class=3D"Apple-style-span" color=3D"#000000"><spa= n>This machine only has UK qwerty keyboard and UK locale. I don't swit= ch</span><br></font></blockquote></blockquote><blockquote type=3D"cite"><blo= ckquote type=3D"cite"><font class=3D"Apple-style-span" color=3D"#000000"><sp= an>into any other layouts.</span><br></font></blockquote></blockquote><block= quote type=3D"cite"><blockquote type=3D"cite"><font class=3D"Apple-style-spa= n" color=3D"#000000"><span></span><br></font></blockquote></blockquote><bloc= kquote type=3D"cite"><blockquote type=3D"cite"><font class=3D"Apple-style-sp= an" color=3D"#000000"><span>I've just changed the default country in the KDE= locale GUI from UK to 'No</span><br></font></blockquote></blockquote><block= quote type=3D"cite"><blockquote type=3D"cite"><font class=3D"Apple-style-spa= n" color=3D"#000000"><span>Country' and will restart the desktop as soon as I= can kick a Luser off it,</span><br></font></blockquote></blockquote><blockq= uote type=3D"cite"><blockquote type=3D"cite"><font class=3D"Apple-style-span= " color=3D"#000000"><span>to see if it works.</span><br></font></blockquote>= </blockquote><blockquote type=3D"cite"><font class=3D"Apple-style-span" colo= r=3D"#000000"><span></span><br></font></blockquote><blockquote type=3D"cite"= ><font class=3D"Apple-style-span" color=3D"#000000"><span>The user logged ou= t of KDE and back in and the darn thing still shows up. :-/</span><br>= </font></blockquote><blockquote type=3D"cite"><font class=3D"Apple-style-spa= n" color=3D"#000000"><span></span><br></font></blockquote><blockquote type=3D= "cite"><font class=3D"Apple-style-span" color=3D"#000000"><span>Any ideas wh= at might be causing this? There is no problem with typing the US = </span><br></font></blockquote><blockquote type=3D"cite"><font class=3D"Appl= e-style-span" color=3D"#000000"><span>dollar character key (Shift+4), but th= ere is when pressing the GBP character </span><br></font></blockquote><= blockquote type=3D"cite"><font class=3D"Apple-style-span" color=3D"#000000">= <span>(Shift+3).</span><br></font></blockquote><blockquote type=3D"cite"><fo= nt class=3D"Apple-style-span" color=3D"#000000"><span></span><br></font></bl= ockquote><blockquote type=3D"cite"><font class=3D"Apple-style-span" color=3D= "#000000"><span>This is what xev shows when pressing and releasing Shift plu= s the key:</span><br></font></blockquote><blockquote type=3D"cite"><font cla= ss=3D"Apple-style-span" color=3D"#000000"><span></span><br></font></blockquo= te><blockquote type=3D"cite"><font class=3D"Apple-style-span" color=3D"#0000= 00"><span>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D</span><br></font></blockquote><blockquote type=3D"cite"><= font class=3D"Apple-style-span" color=3D"#000000"><span>KeyPress event, seri= al 37, synthetic NO, window 0x4a00001,</span><br></font></blockquote><blockq= uote type=3D"cite"><font class=3D"Apple-style-span" color=3D"#000000"><span>= root 0x15b, subw 0x4a00002, time <a href=3D"tel:125124784" x= -apple-data-detectors=3D"true" x-apple-data-detectors-result=3D"7">125124784= </a>, (30,32), root:(3052,475),</span><br></font></blockquote><blockquote ty= pe=3D"cite"><font class=3D"Apple-style-span" color=3D"#000000"><span> &= nbsp;state 0x10, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,</span= ><br></font></blockquote><blockquote type=3D"cite"><font class=3D"Apple-styl= e-span" color=3D"#000000"><span> XLookupString gives 0 bytes:&nbs= p;</span><br></font></blockquote><blockquote type=3D"cite"><font class=3D"Ap= ple-style-span" color=3D"#000000"><span> XmbLookupString gives 0 b= ytes: </span><br></font></blockquote><blockquote type=3D"cite"><font cl= ass=3D"Apple-style-span" color=3D"#000000"><span> XFilterEvent re= turns: False</span><br></font></blockquote><blockquote type=3D"cite"><font c= lass=3D"Apple-style-span" color=3D"#000000"><span></span><br></font></blockq= uote><blockquote type=3D"cite"><font class=3D"Apple-style-span" color=3D"#00= 0000"><span>KeyPress event, serial 40, synthetic NO, window 0x4a00001,</span= ><br></font></blockquote><blockquote type=3D"cite"><font class=3D"Apple-styl= e-span" color=3D"#000000"><span> root 0x15b, subw 0x4a00002, time= <a href=3D"tel:125128642" x-apple-data-detectors=3D"true" x-apple-data= -detectors-result=3D"8">125128642</a>, (30,32), root:(3052,475),</span><br><= /font></blockquote><blockquote type=3D"cite"><font class=3D"Apple-style-span= " color=3D"#000000"><span> state 0x11, keycode 12 (keysym 0xa3, s= terling), same_screen YES,</span><br></font></blockquote><blockquote type=3D= "cite"><font class=3D"Apple-style-span" color=3D"#000000"><span> = XLookupString gives 2 bytes: (c2 a3) "=C2=A3"</span><br></font></blockquote>= <blockquote type=3D"cite"><font class=3D"Apple-style-span" color=3D"#000000"= ><span> XmbLookupString gives 2 bytes: (c2 a3) "=C2=A3"</span><br= ></font></blockquote><blockquote type=3D"cite"><font class=3D"Apple-style-sp= an" color=3D"#000000"><span> XFilterEvent returns: False</span><b= r></font></blockquote><blockquote type=3D"cite"><font class=3D"Apple-style-s= pan" color=3D"#000000"><span></span><br></font></blockquote><blockquote type= =3D"cite"><font class=3D"Apple-style-span" color=3D"#000000"><span>KeyReleas= e event, serial 40, synthetic NO, window 0x4a00001,</span><br></font></block= quote><blockquote type=3D"cite"><font class=3D"Apple-style-span" color=3D"#0= 00000"><span> root 0x15b, subw 0x4a00002, time <a href=3D"te= l:125128772" x-apple-data-detectors=3D"true" x-apple-data-detectors-result=3D= "9">125128772</a>, (30,32), root:(3052,475),</span><br></font></blockquote><= blockquote type=3D"cite"><font class=3D"Apple-style-span" color=3D"#000000">= <span> state 0x11, keycode 12 (keysym 0xa3, sterling), same_scree= n YES,</span><br></font></blockquote><blockquote type=3D"cite"><font class=3D= "Apple-style-span" color=3D"#000000"><span> XLookupString gives 2= bytes: (c2 a3) "=C2=A3"</span><br></font></blockquote><blockquote type=3D"c= ite"><font class=3D"Apple-style-span" color=3D"#000000"><span> XFi= lterEvent returns: False</span><br></font></blockquote><blockquote type=3D"c= ite"><font class=3D"Apple-style-span" color=3D"#000000"><span></span><br></f= ont></blockquote><blockquote type=3D"cite"><font class=3D"Apple-style-span" c= olor=3D"#000000"><span>KeyRelease event, serial 40, synthetic NO, window 0x4= a00001,</span><br></font></blockquote><blockquote type=3D"cite"><font class=3D= "Apple-style-span" color=3D"#000000"><span> root 0x15b, subw 0x4a= 00002, time <a href=3D"tel:125128977" x-apple-data-detectors=3D"true" x= -apple-data-detectors-result=3D"10">125128977</a>, (30,32), root:(3052,475),= </span><br></font></blockquote><blockquote type=3D"cite"><font class=3D"Appl= e-style-span" color=3D"#000000"><span> state 0x11, keycode 50 (ke= ysym 0xffe1, Shift_L), same_screen YES,</span><br></font></blockquote><block= quote type=3D"cite"><font class=3D"Apple-style-span" color=3D"#000000"><span= > XLookupString gives 0 bytes: </span><br></font></blockquot= e><blockquote type=3D"cite"><font class=3D"Apple-style-span" color=3D"#00000= 0"><span> XFilterEvent returns: False</span><br></font></blockquo= te><blockquote type=3D"cite"><font class=3D"Apple-style-span" color=3D"#0000= 00"><span>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D</span><br></font></blockquote><blockquote type=3D"cite"><= font class=3D"Apple-style-span" color=3D"#000000"><span></span><br></font></= blockquote><blockquote type=3D"cite"><font class=3D"Apple-style-span" color=3D= "#000000"><span>-- </span><br></font></blockquote><blockquote type=3D"c= ite"><font class=3D"Apple-style-span" color=3D"#000000"><span>Regards,</span= ><br></font></blockquote><blockquote type=3D"cite"><font class=3D"Apple-styl= e-span" color=3D"#000000">Mick</font></blockquote><br></div><span class=3D"A= pple-style-span" style=3D"-webkit-tap-highlight-color: rgba(26, 26, 26, 0.29= 6875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webki= t-composition-frame-color: rgba(77, 128, 180, 0.230469); ">When you press =C2= =A3-symbol on your keyboard and are using a unicode keymap U+00A3 unicode ke= ypoint is created. When that is encoded to UTF-8 a 2-byte string is created:= 0x2CA3. Now when this string is displayed the software displaying the strin= g needs to know the encoding of the string. If it is interpreted as UTF-8 st= ring you will see: =C2=A3. If it is interpreted as ISO-8859-1 or CP1252 thes= e both will produce: =C3=82=C2=A3.<br><span></span><br><span>So what this me= ans is that you have an in correct unicode configuration. In the console I h= ave correct unicode setup. How ever when run command unicode_stop I get =C3=82= =C2=A3 and after I run unicode_start I will get =C2=A3 as I should.</span><b= r><span></span><br><span>When computer boots always starts with us layout an= d ascii map. It is upto your configuration to switch to your preferred layou= t and charmap.</span><br><span></span><br><span>For X set your layout in xor= g.conf.d in 10-evdev.conf (XkbLayout). Then test that X has the correct keyb= oard layout: sudo Xorg :0 -ac -terminate & (sleep 4 && DISPLAY=3D= :0.0 xterm)</span><br><span></span><br><span>If that works you should have t= he right layout in kde. Deleting kde config will bring you the correct layou= t.</span><br><span></span><br><span>For the console set unicode aware font i= n conf.d/consolefont and keymap in keymaps. And in rc.conf set unicode to ye= s.</span><br><span></span><br><span>--</span><br><span>Matti</span><br><span= ></span><br></span></body></html>= --Apple-Mail-6DC488BA-BF6C-4F60-B8FD-2A73FF37A813--