bug-bash
[Top][All Lists]
Advanced

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

Re: Bash and Unicode


From: DJ Mills
Subject: Re: Bash and Unicode
Date: Thu, 20 Sep 2012 19:23:02 -0400

On Thu, Sep 20, 2012 at 6:00 PM, Jakub Jankiewicz <jcubic@onet.pl> wrote:
> Hi,
>
> I don't know where to ask this or report a bug about it.
>
> I find an issue with Unicode characters (polish) using figlet
>
> $ figlet ó
>
>   /\/|____
>  |/\/|__ /
>   /_\ |_ \
>  / _ \___/
> /_/ \_\
>
> ó is 243, I can call ord(u'ó') form python but not from bash
>
> $ python -c 'print ord(u"ó")'
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> TypeError: ord() expected a character, but string of length 2 found
>
> and it display 2 characters I found that they are:
>
> 195+179
>
> and the reason for this is I got:
>
> echo -n ó | python -c 'import sys;
> for c in sys.stdin.read():
>     print ord(c)'
> 195
> 179
>
> in my system. I thought that it's something with bash, so I try to call
> exec function from C (I think it don't use shell).
>
> #include <unistd.h>
>
> void main() {
>     execl("/usr/bin/figlet-figlet", "", "ó", NULL);
> }
>
> and got the same result. What's wrong? Anybody know how to fix it?
> Where should I report this. Or maybe I have something wrong with my
> system.
>
> I'm using Ubuntu 11.10 with XFce.
>
>
> --
> Jakub Jankiewicz, Web Developer
> http://jcubic.pl


This would be an issue with the figlet program, which has nothing to
do with bash.

The man page (http://linux.die.net/man/6/figlet) gives the email
address info@figlet.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]