Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Phil's prompt is not working when LANG is set to UTF-8



On Mon, Feb 11, 2008 at 02:37:43PM +0100, Wael Nasreddine <mla@xxxxxxxxxxxxxx> wrote:
> On Mon, Feb 11, 2008 at 01:07:07PM +0000, Peter Stephenson <pws@xxxxxxx> wrote:
> > On Mon, 11 Feb 2008 10:20:21 +0100
> > Wael Nasreddine <mla@xxxxxxxxxxxxxx> wrote:
> > > Oh I'm sorry I forgot to mention that this only happens on consoles not in X
> > > emulators ( /dev/tty1 etc... ) I have also the combination of
> > > rxvt-unicode/zsh/UTF-8 and it works fine but on the console it's too messy so
> > > I'm deprived of consoles ATM.

> > > Anyway my zsh version is 4.3.5

> > I suspect the right thing to do here might be either to "unsetopt
> > multibyte" or "export LC_ALL=C".  It sounds like the combination of
> > the console and the C library aren't doing the stuff the shell needs
> > to support multibyte characters.  If that's not the problem, please send
> > more detail about your settings and environment and what works and what
> > doesn't work.

> > (That last sentence applies to everybody.  Zsh runs in some very different
> > environments.  We could *always* do with knowing what that is, even
> > if it turns out not to be relevant.  If it applies in lots of
> > different environments, please say so---as many people already do.)

> Thank you for your reply, but, set/unsetting multibyte opt has no
> effect but as said before when LANG is set to utf8 it doesn't work,
> for now I use LANG=en_US (iso-8859-1) it does work this way though I
> don't want to stick with this encoding, anyway here's some more
> info for you.

> My current setup is Gentoo, 2.6.24, I thought it was irrelevant
> because as I said before I tried it on both Linux and Unix, I tried
> Arch Linux, Ubuntu, Gentoo, Frugalware, FreeBSD etc.. All with the
> same result, so I know that the problem comes from somewhere in my
> profile, an incompatibility or something I'm not sure.

> .zshrc and all the files that it includes:
>     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/trunk/etc/.zshrc?view=co
>     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/trunk/etc/.zsh/alias?view=co
>     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/trunk/etc/.zsh/bindkey?view=co
>     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/trunk/etc/.zsh/opts?view=co  <-- where all opts are set.
>     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/trunk/etc/.zsh/prompts/phils?view=log
>     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/trunk/etc/.shells/alias?view=log
>     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/trunk/etc/.shells/autolaunch?view=log
>     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/trunk/etc/.shells/colors?view=log
>     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/trunk/etc/.shells/exports?view=log <-- where I define the LANG.
>     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/trunk/etc/.shells/functions?view=log

> Just to try and save you some time reading all those files here's the
> output of:
> setopt: http://nopaste.nasreddine.com/fed365b5cb.html
> env: http://nopaste.nasreddine.com/4d004fdb39.html

> Thank you.

Please use the below URLs instead, I just migrated my servers to
FreeBSD and I'm still fixing some stuff, google knows my repo this way
not the one above, sorry for any inconvenience.
.zshrc and all the files that it includes:
     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/wael/trunk/etc/.zshrc?view=co
     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/wael/trunk/etc/.zsh/alias?view=co
     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/wael/trunk/etc/.zsh/bindkey?view=co
     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/wael/trunk/etc/.zsh/opts?view=co  <-- where all opts are set.
     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/wael/trunk/etc/.zsh/prompts/phils?view=log
     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/wael/trunk/etc/.shells/alias?view=log
     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/wael/trunk/etc/.shells/autolaunch?view=log
     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/wael/trunk/etc/.shells/colors?view=log
     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/wael/trunk/etc/.shells/exports?view=log <-- where I define the LANG.
     http://wael.nasreddine.com/cgi-bin/viewvc.cgi/wael/trunk/etc/.shells/functions?view=log


-- 
Wael Nasreddine
http://wael.nasreddine.com
PGP: 1024D/C8DD18A2 06F6 1622 4BC8 4CEB D724  DE12 5565 3945 C8DD 18A2

.: An infinite number of monkeys typing into GNU emacs,
   would never make a good program. (L. Torvalds 1995) :.

Attachment: pgpsZsXYJEz7L.pgp
Description: PGP signature



Messages sorted by: Reverse Date, Date, Thread, Author