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 fir
> 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
> white
On Sat, 2003-03-01 at 13:20, Ulf Karlsson wrote:
> 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 characte
Hi,
Thanks for your suggestions.
> Notes here:
>
> - Glibc has a "feature" where %Ns actually checks for a whole
>number of characters in the current encoding. So, unless you
>are sure you are always going to be in an UTF-8 locale, avoid
>using %Ns. (You are basically OK for iso-88
Hi,
Ulf Karlsson <[EMAIL PROTECTED]> writes:
> > - Glibc has a "feature" where %Ns actually checks for a whole
> >number of characters in the current encoding. So, unless you
> >are sure you are always going to be in an UTF-8 locale, avoid
> >using %Ns. (You are basically OK for iso
Hi,
> > > - Glibc has a "feature" where %Ns actually checks for a whole
> > >number of characters in the current encoding. So, unless you
> > >are sure you are always going to be in an UTF-8 locale, avoid
> > >using %Ns. (You are basically OK for iso-8859-1, but will
> > >have pr