[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cannot type power of 1 or 2, 4-9 are typeable.



On 2010-04-12 01:41, Florian Kulzer wrote:
On Sun, Apr 11, 2010 at 19:43:30 -0700, jeremy jozwik wrote:
im trying to type [copy from character map] power of 2. i can read
power of 2 on webpages but if i were to cope > paste from that page,
the power displays as a normal character 2. is this a
dpkg-reconfigure locales issue?

It could also be due to the browser not copying certain characters
correctly to the clipboard.

Let's start at the beginning, which output do you get from this command:

  locale

If you use an utf8-based locale, e.g. "en_US.UTF-8", then the following
command should print the numbers 1-5 in superscript:

  echo -e "\xc2\xb9\xc2\xb2\xc2\xb3\xe2\x81\xb4\xe2\x81\xb5"

What do you get?


In xfce terminal, it works perfectly. In urxvt (with font fixed-medium), the ^4 is weird looking, but pasting it into Iceweasel makes it look correct.

~$ echo -e "\xc2\xb9\xc2\xb2\xc2\xb3\xe2\x81\xb4\xe2\x81\xb5"
¹²³⁴⁵

$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

--
Dissent is patriotic, remember?


Reply to: