On Tue, 26 Jul 2016, [email protected] wrote:
> I was getting odd behavior with printf(1) when using ' or " with a value 
> of 128 or more, but only on some systems.
...
> This patch adds casts to unsigned char to avoid problems when char is 
> signed.  With this patch applied the correct values of 80, 200, 128 and 
> 128 are printed for the above examples.

This is a step forward, but we should look at snagging the (misnamed, IMO) 
asciicode() function from FreeBSD to correctly handle conversion of 
multibyte characters.


Philip

Reply via email to