[BRLTTY] BRLTTY in GRUB2

Vladimir 'φ-coder/phcoder' Serbinenko phcoder at gmail.com
Mon Apr 2 15:20:05 EDT 2012


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 294 bytes
Desc: OpenPGP digital signature
URL: <http://mielke.cc/pipermail/brltty/attachments/20120402/b0bef8e7/attachment.sig>


More information about the BRLTTY mailing list