Branch: refs/heads/master
Home:   http://github.com/phuang/ibus-m17n

Commit: 156f351796d0afd57170823def5bd88c030e12eb
    
http://github.com/phuang/ibus-m17n/commit/156f351796d0afd57170823def5bd88c030e12eb
Author: Daiki Ueno <[email protected]>
Date:   2010-06-27 (Sun, 27 Jun 2010)

Changed paths:
  M src/engine.c
  M src/m17nutil.c
  M src/m17nutil.h

Log Message:
-----------
Fix Mtext -> gunichar * conversion.

There seems to be an off-by-one in ibus_m17n_mtext_to_ucs4().  Currently
ibus-m17n uses the UTF-32 encoder provided by m17n-lib, which generates BOM,
to convert Mtext to UCS-4, and NULL-terminates the output as if there is no BOM.
This patch uses the UTF-8 encoder in combination with g_utf8_to_ucs4_fast()
instead of the UTF-32 encoder.  This will also fix endianness issues.

Signed-off-by: Daiki Ueno <[email protected]>


-- 
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

回复