Non-English letters in XPrompt?

Hi list, I couldn't make the XPrompt work with Chinese characters. I used the same font that works with dzen. But when I want it to auto-complete paths with Chinese characters, it completes correctly, yet incorrectly showing the characters. I simply used
shellPrompt defaultXPConfig { font = "font works fine with dzen" }
What else should I do to make the font showing the correct characters? - Xiao-Yong -- c/* __o/* <\ * (__ */\ <

On Sat, Sep 08, 2007 at 01:35:25AM -0400, Xiao-Yong Jin wrote:
What else should I do to make the font showing the correct characters?
The problem cannot be solved with a configuration option I'm afraid. I need to investigate it a bit further but I want to have this encoding problem solved. I would like to know something about your configuration: what locale are you using? are you using utf8 fonts? Because the same happens here with utf8 and non ascii characters (I didn't notice before because I only use ascii character for files' names). The fact that completions works (as you said) lead me to think it could just be Graphics.X11.Xlib.Misc.drawImageString. Probably we need XDrawImageString16, but I'm not sure yet. Andrea

Andrea Rossato
On Sat, Sep 08, 2007 at 01:35:25AM -0400, Xiao-Yong Jin wrote:
What else should I do to make the font showing the correct characters?
The problem cannot be solved with a configuration option I'm afraid.
I need to investigate it a bit further but I want to have this encoding problem solved. I would like to know something about your configuration: what locale are you using? are you using utf8 fonts? Because the same happens here with utf8 and non ascii characters (I didn't notice before because I only use ascii character for files' names).
I'm using `en_US.UTF-8'. And it's a utf8 font.
The fact that completions works (as you said) lead me to think it could just be Graphics.X11.Xlib.Misc.drawImageString. Probably we need XDrawImageString16, but I'm not sure yet.
I've the least idea how it works. I really appreciate your effort on it. Thanks, Xiao-Yong
Andrea
_______________________________________________ Xmonad mailing list Xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
-- c/* __o/* <\ * (__ */\ <

On Sat, Sep 08, 2007 at 09:52:53AM -0400, Xiao-Yong Jin wrote:
I've the least idea how it works. I really appreciate your effort on it.
I'm working on this issue but I'm having some troubles to get the C side understand a Haskell string is a Unicode code point. I also tried using some of Mats code from his i18n patches,[1] with no result. The only way I seem able to have non ascii characters properly displayed is by converting them to single byte characters. Not what we want really. I think I need to study a bit more deeply the problem. There must be something I don't grasp yet. We need to be patient...;-) Andrea [1] http://code.google.com/p/xmonad/issues/detail?id=43 and http://code.google.com/p/xmonad/issues/detail?id=44
participants (2)
-
Andrea Rossato
-
Xiao-Yong Jin