openbsd-ports/inputmethods/scim-chewing/patches/patch-src_scim_chewing_imengine_cpp
kevlo f0ddbfff4e Initial import of scim-chewing 0.3.2
scim-chewing is an scim IMEngine module for chewing.

ok ajacoutot@
2008-10-29 02:23:07 +00:00

31 lines
1.2 KiB
Plaintext

$OpenBSD: patch-src_scim_chewing_imengine_cpp,v 1.1.1.1 2008/10/29 02:23:07 kevlo Exp $
--- src/scim_chewing_imengine.cpp.orig Wed Oct 1 17:53:55 2008
+++ src/scim_chewing_imengine.cpp Sat Oct 25 16:48:55 2008
@@ -591,7 +591,7 @@ bool ChewingIMEngineInstance::commit( ChewingOutput *p
SCIM_DEBUG_IMENGINE( 2 ) <<
"IMEngine Instance Commit\n";
// commit string
- m_commit_string = L"";
+ m_commit_string = WideString ();
if ( pgo->keystrokeRtn & KEYSTROKE_COMMIT ) {
for ( int i = 0; i < pgo->nCommitStr; i++ ) {
m_commit_string += utf8_mbstowcs((char *)pgo->commitStr[ i ].s,
@@ -601,7 +601,7 @@ bool ChewingIMEngineInstance::commit( ChewingOutput *p
}
commit_string( m_commit_string );
}
- m_preedit_string = L"";
+ m_preedit_string = WideString ();
// preedit string
// XXX show Interval
for ( int i = 0; i < pgo->chiSymbolCursor; i++ ) {
@@ -684,7 +684,7 @@ bool ChewingIMEngineInstance::commit( ChewingOutput *p
}
// show aux string
- m_aux_string = L"";
+ m_aux_string = WideString ();
if ( pgo->bShowMsg ) {
for ( int i = 0; i < pgo->showMsgLen; i++ ) {
m_aux_string += utf8_mbstowcs((char *)pgo->showMsg[ i ].s, MAX_UTF8_SIZE);