Pat Gunn (dachte) wrote,
Pat Gunn
dachte

  • Location:
  • Mood:
  • Music:

In Search of a New Prompt

Computer frustration:

As many of you know, I use Linux on all of my personal systems, and partly because I speak bits of a number of languages and partly because I know a lot of people who arn't from the United States, I am exposed to a lot of non-English music. The last time someone I knew went to Russia, I asked him to pick me up some music by Сплин, and he also got me some stuff by Звери. Putting them on my computer means having files with Unicode filenames - nothing new to me (I have some Chinese and Japanese music too). Unfortunately, when I go into a directory with a Unicode filename (like "/media/music/collection/звери-районы_кварталы"), bash gets confused when it tries to print my prompt (PS1="\h:\w# ") - there's a bad interaction that happens and I either get a large tab stuck after the end of my prompt while in that directory (managable but ugly) or I get visual tabs between every character that I type (commands still work - it's just display), which is almost unusable. I can do PS1="$ " whenever I enter those directories, of course, but that sucks as a solution. This seems to happen with both gnome-terminal (which I presently am using as my terminal program) and xterm (which seems to be even more badly-behaved).

No, I haven't checked google yet, and I may eventually dig into the source of bash, gnome-terminal, and other things involved if I exhaust other possibilities, I'm just grumbling in public. If anyone just so happens to have already done the digging to understand/solve this, please reply.

P.S. gok (Gnome Onscreen Keyboard) is one of the most stupid, evil X programs on my system - it tops "xwd" in the list of commands that should never be invoked unless you really know what you're doing. By default, it grabs the mouse for its own, nefarious purposes (meaning it stops acting as a pointer), and seems to grab the keyboard too (so I wasn't able to switch away from it). Fortunately, I was able to pop into a non-X vt to kill it, but that kind of default behaviour is very unfair to most users. I hope that somehow my using a non-default window-manager is at fault and people won't have to reboot if they happen to start gok.

Subscribe

  • CMU, the First Amendment, and Indecent Exposure

    Earlier on my G+ stream, I commented on the matter of a CMU student who protested the Catholic church's coverup of sexual abuse by dressing as the…

  • Dilution

    I've been thinking about an issue that's been raised in the secular community; I'm not sure it's a good issue, nor a bad one. Let me lead up to it…

  • Commentary on the Human Rights Campaign

    I recently was pointed at a blog post suggesting people reject the Human Rights Campaign, a large social justice organisation that focuses on…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 14 comments

  • CMU, the First Amendment, and Indecent Exposure

    Earlier on my G+ stream, I commented on the matter of a CMU student who protested the Catholic church's coverup of sexual abuse by dressing as the…

  • Dilution

    I've been thinking about an issue that's been raised in the secular community; I'm not sure it's a good issue, nor a bad one. Let me lead up to it…

  • Commentary on the Human Rights Campaign

    I recently was pointed at a blog post suggesting people reject the Human Rights Campaign, a large social justice organisation that focuses on…