hoorah...
not precisely sure which combination of locale/language shuffling did
the trick, latest changes were to remove "LC_CTYPE=C" from .profile and
.bash_profile, now gnome-terminal is showing character encoding as
Current Locale (UTF8) by default and vim is rendering £ correctly. It is
also correct in the terminal again and the ptys. Interestingly, the txt
doc I was editing yesterday shows £ when using vim but some unprintable
char when I cat it in the terminal - presumably it is not utf8 but vim
compensates for it.
anyway, many thanks for all the help from oxluggers. Not sure what this
change will do when I'm shelling into solaris hosts with LC_* set to C.
I guess I need to bite the bullet and learn a little more about locale
and localisation...
After spending so much time on this problem I feel I'd better carry on
with ubuntu for the time being! just need to fix the printing problem
now, hey ho...
GREG
Tim Bagot wrote:
> At 2008-06-23T14:49+0100, Greg Matthews wrote:
>
>> I cannot get it to render a pound sign (£) in certain apps. In
>> particular gnome-term (and so vim) and the ptys.
>
>> $ locale
>> LANG=en_GB.UTF-8
>> LC_CTYPE=C
> [LC_blah=en_GB.UTF-8]
>
> That LC_CTYPE setting is at least part of your problem. The "C" locale
> is ASCII-only, and you can hardly expect your terminal to display a
> character that is not reported as printable. I think gnome-terminal by
> default uses LC_CTYPE to determine the character encoding.
>
> Having LC_CTYPE set to C but all other components en_GB.UTF-8 is
> likely to cause other problems too. e.g. some messages determined
> by LC_MESSAGES may contain characters taken to be unprintable.
>
>> In pty1 they render as "#<CR>" and "<beep?>" respectively.
>
> The #<CR> is actually readline interpreting £ as Meta-#, which is
> bound to insert-comment. Try adding "set convert-meta Off" to
> ~/.inputrc .
>
>
> Tim Bagot
>
>
>
--
Greg Matthews 01491 692445
Head of UNIX/Linux, iTSS Wallingford
--
This message (and any attachments) is for the recipient only. NERC
is subject to the Freedom of Information Act 2000 and the contents
of this email and any reply you make may be disclosed by NERC unless
it is exempt from release under the Act. Any material supplied to
NERC may be stored in an electronic records management system.