a more secured g_utf8_strreverse
- From: BENOIT CARPENTIER <gtkool_2kx yahoo fr>
- To: gtk-devel-list gnome org
- Subject: a more secured g_utf8_strreverse
- Date: Fri, 25 Jun 2004 16:19:36 +0200 (CEST)
Hi,
In gdk, gtk+ 2.4.3, the function g_utf8_strreverse.
a const gchar * is passed as an argument to this
function.
It should be tested as an utf8 string, and if it is
not an utf8 string then be translated into an utf8
string.
What do you think of that ?
I tested g_tuf8_strreverse with two const gchar *, the
first string doesn't need to be an utf8 string but the
second one needs.
printf("%s\n", g_utf8_strreverse("benoit",6));
printf("%s\n", g_utf8_strreverse("benoît",6));
// trouble in this case
/* with g_utf8 string, it is 7 and not 6 as a second
argument */
Regards,
Benoit "GTKool" Carpentier
Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]