Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: £ sign in X11
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: £ sign in X11



Well I wonder if something odd IS happening.

The problem with all this is that there are just too many variables - too many levels of conversions - and it's hard to really understand what is happening. I get £ signs in shells - and things like ed running in the xterm. I use -lc flag to pick up the locale so I get a UTF-8 xterm all the time.

I also set my shell environment to LANG=en_GB.UTF-8.

However I'm getting odd things in emacs (Fink). I've now told emacs to use utf-8 for everything in the start-up file:

(set-default-coding-systems 'utf-8)
(set-buffer-file-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(prefer-coding-system 'utf-8)

I am unsure that I really should need to do all this.

Now - Emacs running under X is happy - ie I start emacs file and get a new window. I'm getting £ signs inserted properly.

But with the same xterm and .emacs file I get
B#
inserted for each £ sign typed. Dumping this - and od -c on the stored file shows that I really am getting a B and # in the file. Well the 'B' is significant - ASCII B is hex 42 - and is replacing the hex C - so something somewhere is stripping the top bit I think.


Yes - xev says that the key is returning the correct symbol pair. So perhaps this is Fink emacs21 playing games. It's all pretty odd.

MacOS native code IS behaving differently from remotely run applications..

On 15 Mar 2007, at 09:45, Vincent Lefevre wrote:

On 2007-03-15 09:53:25 +0100, Jed Stone wrote:
I may be wrong, but since upgrading to 10.4.9 I cant enter the £ symbol

it comes out ok in all the other apps, but in X11 local terminal on my Mac I
get a # followed by carriage return

Jed:~ kev_stone$ #
Jed:~ kev_stone$

No problem here (after the upgrade to 10.4.9), either with xterm (ISO-8859-1) or with uxterm (UTF-8). Try "xev". Do you get the right keysym? Are your locale settings correct ("locale" command)?

Also the copy (command C) produces a small letter c instead of
copying to the clip board.

Perhaps something changed in your keyboard settings ("xev" will tell you what the X server gets) or in the X11 preferences. Look at them.

--
Vincent Lefèvre <email@hidden> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/ blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS- Lyon)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/ mailman/options/x11-users/email@hidden


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. X11-users mailing list (email@hidden) This email sent to email@hidden
References: 
 >£ sign in X11 (From: Jed Stone <email@hidden>)
 >Re: £ sign in X11 (From: Vincent Lefevre <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.