On 02.04.2012 21:07, Dave Mielke wrote:
> [quoted lines by Vladimir 'φ-coder/phcoder' Serbinenko on 2012/04/02 at 20:21 
> +0200]
>
>> What do convertCharToWchar and convertWcharToChar do?
> Just include charset_none (as opposed to charset_iconv, etc). In 
> charset_none, 
> they don't do any conversion - they just return the original character.
Actually it seems to be buggy:
wint_t
convertCharToWchar (char c) {
  return c & 0XFF;
}
If char is signed (most platforms) and c=0xff then it is and'ed as char
so keeps 0xff=-1 and the returned result is -1, not 0xff


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: [email protected]
For general information, go to: http://mielke.cc/mailman/listinfo/brltty

Reply via email to