qemacs-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-commit] qemacs haiku.cpp


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs haiku.cpp
Date: Tue, 04 Feb 2014 03:26:46 +0000

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        14/02/04 03:26:46

Modified files:
        .              : haiku.cpp 

Log message:
        use utf8_encode instead of unicode_to_charset

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/haiku.cpp?cvsroot=qemacs&r1=1.9&r2=1.10

Patches:
Index: haiku.cpp
===================================================================
RCS file: /sources/qemacs/qemacs/haiku.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- haiku.cpp   2 Feb 2014 14:31:05 -0000       1.9
+++ haiku.cpp   4 Feb 2014 03:26:45 -0000       1.10
@@ -762,7 +762,7 @@
     BString text;
     for (i = 0; i < len; i++) {
         cc = str[i];
-        unicode_to_charset(buf, cc, &charset_utf8);
+        buf[utf8_encode(buf, cc)] = '\0';
         text << buf;
     }
     ctx->v->DrawString(text.String());



reply via email to

[Prev in Thread] Current Thread [Next in Thread]