Comment #10 on issue 458 by portis24: ibus can't use in emacs23 if locale is en_US.UTF-8 http://code.google.com/p/ibus/issues/detail?id=458
I found this: (link http://www.mail-archive.com/[email protected]/msg08564.html) I've just installed a partial fix. It seems that the reason why XIM sometimes doesn't work with Emacs is that Emacs fails to create an X's fontset depending on user's locale and font being used. As far as I read the manual of XCreateFontSet, it seems that Emacs' code is not wrong, but, actually XCreateFontSet (bug of X?). I couldn't figure out what pattern of fontsetname causes that failure, but found a workaround and installed it. At least it works with XFree85 4.3. Could people try "Test Case One/Two/Three/Four" with the latest code? > Test Case Four: > ================= > Rationale: > ---------- > Recently, a user came up with a strange solution to this problem when > he was playing with Xft support in Unicode branch, trying to setup > Chinese fonts correctly; His report showes that deleting all CJK fonts > in X base fonts (the Debian xbase-fonts package) would effectively > make the problem goes away. > Steps: > ------------ > 1. Save the following Python script as rmfonts.py, and run 'python > rmfonts.py' as root. The script removes all CJK fonts from X's base > fonts (actually all fonts that specifies encodings that not started > with 'iso', like 'gb2312', see the script below for details). > *WARNING: BACKUP THE FONTPATH DIRECTORY BEFORE YOU GO!* > #!/usr/bin/env python > import os > FONTPATH = '/usr/share/fonts/X11/misc' # Change this if your font path > differ > def process(line): > tokens = line.split(' -') > if len(tokens) > 1: > parts = tokens[1].split('-') > if len(parts) > 1 and not parts[-2].startswith('iso'): > return os.path.join(FONTPATH, tokens[0]) > fontlist = [process(line) for line in open(os.path.join(FONTPATH, > 'fonts.dir'))] > fontlist = filter(None, fontlist) > for font in fontlist: > os.unlink(font) > os.system('mkfontdir %s' % FONTPATH) > 2. Restart X. > 3. Start gnome-settings-daemon. > $ gnome-settings-daemon > 4. Start emacs, and try hit Ctrl-Space in the emacs window. You should > see that this brings up the SCIM panel, even if > gnome-settings-daemon is running. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ibus-devel" group. iBus project web page: http://code.google.com/p/ibus/ iBus dev group: http://groups.google.com/group/ibus-devel?hl=en -~----------~----~----~----~------~----~------~--~---
