glib-2.2.1: g_print() with UTF-8 characters
- From: Ulf Karlsson <ulfc kortedala phetto com>
- To: gtk-list gnome org
- Subject: glib-2.2.1: g_print() with UTF-8 characters
- Date: Sat, 1 Mar 2003 19:20:46 +0100
Hi,
I'm trying to print strings containing swedish characters in columns
by doing
g_print("%-16s%-16s\n", "Hallå", "Världen");
The problem seems to be that vasprintf isn't UTF-8-aware and counts
the swedish UTF-8 character as two characters and thus only adds 10
whitespaces after the first string, with the consequence that the
second string is one position left of where it is supposed to be!
I'm using glibc-2.3.1.
Any ideas?
Ulf
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]