Re: [dwm] d{wm,menu} and utf8
On Fri, Dec 15, 2006 at 05:21:16PM +0100, Christian Garbs wrote: On Thu, Dec 14, 2006 at 08:19:46AM +0100, Anselm R. Garbe wrote: I'm not sure if this is my MUA, but it seems that you send some control sequence(s) which erased some data? No, everything I typed got send (I was in a rush and cut the mail down to a bare minimum), I only mistyped one Esc-q as Alt-q which created the stray 'ñ' in the text... Sander, does the attached patch fix your problems with the character display under dmenu? It changes the same thing that helped me to display Japanese characters in the dwm status bar. Regards, Christian PS: by accident I stumbled across the following: I use en_US.UTF-8, check if that works for all cases with Xmb (I'd expect that). Regards, -- Anselm R. Garbe http://suckless.org/~arg/ GPG key: 0D73F361
Re: [dwm] d{wm,menu} and utf8
On 12/15/06, Christian Garbs [EMAIL PROTECTED] wrote: Sander, does the attached patch fix your problems with the character display under dmenu? It changes the same thing that helped me to display Japanese characters in the dwm status bar. No, I already tried that, but it didn't change anything. Using my default locale settings[1] I need the attached patch to make dmenu print these three selections properly: [EMAIL PROTECTED]:/tmp$ cat foo こんばんわäöü FOO こんいちわäöü FOO おはようäöü FOO But if I am using slightly a different locale[2] (I need it for Japanese character input, but I use it only temporarily) then I don't need the patch and dmenu displays these selections correctly when using the Xmb*() functions. Hm, these all display just fine for me with LC_CTYPE=en_US.UTF-8 and font '*-terminus-*-*-*-*-*-*-*-*-*-*-*', both with and without your patch. Funny enough though, when I tried this with the wrong font (the one urxvt said it took the Œ character from), the ü was replaced by exactly that character :-S. Turns out terminus has that character as well, and I can easily make dmenu display it with a simple echo -e '\214' | dmenu -font '*-terminus-*-*-*-*-*-*-*-*-*-*-*' So I guess all this is due to urxvt using different fonts for different characters and me not really having a clue how that affects things. So it seems that there's no problem in dmenu here, although I'm not completely sure yet exactly what's going on. When (if?) I find out I'll let you know... Greetings, Sander.
[dwm] d{wm,menu} and utf8
Hi, I'm still experiencing some oddities with multibyte characters in d{wm,menu}. If, in urxvt, I press and hold Ctrl+Shift, type 1,5,2, and release Ctrl+Shift, it displays a single character (something like DE, but with the D mirrorred vertically and attached to the E, I've got no idea what that character is called). However, when I echo that character into dmenu, it displays one item consisting of _two_ characters (with my default font: (+). Even when I start dmenu explicitly with the font urxvt says it takes the character from, it still displays one item of two characters (this time an A with a on top, followed by a square). The funny thing is, in both of these cases, when I select that item, it gets printed to stdout correctly as the DE character. Since urxvt uses different fonts for different characters when required, it'll always be possible that it displays some stuff that dmenu doesn't. However, I do believe that a sequence of bytes that represents _one_ character in urxvt should represent _one_ character in d{wm,menu} too, right? (even if the used font doesn't contain that specific character, it should display just one square). Are other people experiencing the same thing? Greetings, Sander.
Re: [dwm] d{wm,menu} and utf8
On Wed, Dec 13, 2006 at 09:34:25AM +0100, Sander van Dijk wrote: Are other people experiencing the same thing? Sounds like the problems I was having with Japanese characters in the dwm status bar. You could try to change the Xmb*() functions toñ Xutf8*() functions - I'll have a look at it on Friday. (see http://suckless.org/pipermail/dwm/2006-December/001417.html ff.) Regards, Christian -- Christian.Garbs.http://www.cgarbs.de Ever heard of .cshrc? That's a city in Bosnia. Right? (Discussion in comp.os.linux.misc on the intuitiveness of commands.)