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

  • Still alive

    Been feeling a bit nostalgic. Not about to return to LiveJournal - their new ownership is unfortunate, but I wanted to briefly note what's been up…

  • Unplugging LJ

    It's about time I pulled the plug on the LJ version of my blog: 1) I'm much more active on G+ than I am with general blogging. I post many times a…

  • Mutual Trust

    I don't know which should be considered more remarkable: That a cat should trust a member of a far larger and stronger species that it can't…

  • 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

  • Still alive

    Been feeling a bit nostalgic. Not about to return to LiveJournal - their new ownership is unfortunate, but I wanted to briefly note what's been up…

  • Unplugging LJ

    It's about time I pulled the plug on the LJ version of my blog: 1) I'm much more active on G+ than I am with general blogging. I post many times a…

  • Mutual Trust

    I don't know which should be considered more remarkable: That a cat should trust a member of a far larger and stronger species that it can't…