[PC-BSD Testing] iBus(CJK input method) cannot working on 9.0Beta1.5

Yamashiro, Jun yamajun at ofug.net
Fri Sep 16 21:58:36 PDT 2011


On Sun, 11 Sep 2011 15:49:19 -0400
Kris Moore <kris at pcbsd.org> wrote:
> 
> Thanks for finding this! Committed!

Thanks for commit.  But, I mistook in last mail.  Sorry.
I forget this patch for: /usr/local/share/pcbsd/xstartup/enable-ibus.sh

ChangeLog:
* Language select from GDM_LANG environment variable(formerly kdmrc file).

Note:
I found depend on KDM source at: "current/system-overlay/usr/local/bin/pdm".
Is it safe?


--- enable-ibus.sh.orig	2010-10-30 03:43:57.000000000 +0900
+++ enable-ibus.sh	2011-09-17 11:25:17.000000000 +0900
@@ -7,11 +7,11 @@
 ##########################################################################
 
 # Check kdm language
-KDMLANG="`cat /usr/local/share/config/kdm/kdmrc | grep '^Language=' | cut -d '=' -f 2 | cut -d '.' -f 1`"
+#KDMLANG="`cat /usr/local/share/config/kdm/kdmrc | grep '^Language=' | cut -d '=' -f 2 | cut -d '.' -f 1`"
 
 # Check if we are using a lang which needs ibus
-case ${KDMLANG} in
-  ja_JP|ko_KR|zh_CN|zh_TW) ENABLE="YES" ;;
+case ${GDM_LANG} in
+  ja_JP*|ko_KR*|zh_CN*|zh_TW*) ENABLE="YES" ;;
   *) ENABLE="NO" ;;
 esac
 

-- 
Yamashiro, Jun			Email: yamajun at ofug.net
Okinawa FreeBSD Users Group


More information about the Testing mailing list