utf8 issues in Scintilla

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: utf8 issues in Scintilla
Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2946@lists.php.net to get a copy of this message
Hi! I am using gtkscintilla2-0.6.0 because the 0.1.0 does not build on my suse 10.0. I do not know if this matter. I find a bug in scintilla. Is about utf8 thing. The php converts the values from the variable to utf8 and give the utf8 version to scintiila, but it expects the plain value, not the encoded value, so in this function, by example, it set the value of scintilla with weird char(test with "ééééé", so: ex: $sc = new GtkScintilla(); $sc->set_text("ééééé´"); In this code: static PHP_METHOD(GtkScintilla, set_text) { char *text; zend_bool free_text = FALSE;
    NOT_STATIC_METHOD();
if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "u", &text, &free_text)) return;
    gtk_scintilla_set_text(GTK_SCINTILLA(PHPG_GOBJECT(this_ptr)), text);
if (free_text) g_free(text); } If we replace the "u" by "s" all works correct, I did not test the other functions, but this might happen too. If you agree that this is the best solution, I can search for the others functions where this happen and send to you all changes. Fernando Correa da Conceição fernandoc@php.net _______________________________________________________ Yahoo! doce lar. Faça do Yahoo! sua homepage. http://br.yahoo.com/homepageset.html

« previous php.gtk.dev (#2946) next »