Is 'l' (like the word 'like') not '|' (pipe).

    If an l modifier is present: The const  wchar_t  *  argument  is
    expected  to  be a pointer to an array of wide characters.  Wide
    characters from the array are converted to multibyte  characters
    (each  by  a  call  to the wcrtomb() function, with a conversion
    state starting in the initial state before the first wide  char-
    acter),  up  to and including a terminating null wide character.
    The resulting multibyte characters are written up  to  (but  not
    including)  the  terminating null byte. If a precision is speci-
    fied, no more bytes than the number specified are  written,  but
    no  partial multibyte characters are written. Note that the pre-
    cision determines the number of bytes written, not the number of
    wide  characters  or screen positions.  The array must contain a
    terminating null wide character, unless a precision is given and
    it  is  so  small  that  the  number of bytes written exceeds it
    before the end of the array is reached.

--pancake

On Sun, 8 Apr 2007 23:39:10 +0200
"Lluís Batlle" <[EMAIL PROTECTED]> wrote:

> man 3 printf
> mira't el modificador | (pipe) per a s.
> 
> A veure si et serveix.
> 2007/4/5, Lluís Batlle <[EMAIL PROTECTED]>:
> > There should be a sane way of printing w_char to stdout (so locales
> > take care of the encoding, etc.). But I don't know how. :)
> > 2007/4/5, pancake <[EMAIL PROTECTED]>:
> > > Heheh, i know that UNICODE stuff really sux, any patch?
> > >
> > > I've the code of an UTF8 implementation library in C by a german friend, 
> > > and it works
> > > pretty nice, but it's BSD and i don't know if use't or not. Its code is 
> > > pretty good
> > > and have been taken by the RUBY people for their root utf implementation. 
> > > btw I
> > > don't know ANY library that implements the fully UTF standard. Nor 
> > > propietary or
> > > free. UTF SUX and that's all. The only question avaiable is how much 
> > > compatible
> > > we want to be with unicode.
> > >
> > > /me don't want stupid encodings on radare. Use iconv and pipes for this. 
> > > KiSS.
> > >
> > > --pancake
> > >
> > > On Wed, 4 Apr 2007 23:00:23 +0200
> > > "Lluís Batlle" <[EMAIL PROTECTED]> wrote:
> > >
> > > > >   for(i=0;i<len && (buf[i]&&!buf[i+1]);i+=2)
> > > > >       printf("%c", buf[i]);
> > > > Name that "wide char" is far too optimistic, I think. ;)
> > > > _______________________________________________
> > > > radare mailing list
> > > > [email protected]
> > > > https://lists.nopcode.org/mailman/listinfo/radare
> > > >
> > >
> > >
> > >   --pancake
> > > _______________________________________________
> > > radare mailing list
> > > [email protected]
> > > https://lists.nopcode.org/mailman/listinfo/radare
> > >
> >
> _______________________________________________
> radare mailing list
> [email protected]
> https://lists.nopcode.org/mailman/listinfo/radare
> 


  --pancake
_______________________________________________
radare mailing list
[email protected]
https://lists.nopcode.org/mailman/listinfo/radare

Reply via email to