On 28-05-2012 19:49, Michal Kubecek wrote:
> On Mon, May 28, 2012 at 07:34:28PM +0200, Michal Kubecek wrote:
>>
>> I did experiment a bit and it seems that locale (most likely LC_CTYPE,
>> unfortunately the one that needs to be set for libedit to work), affects
>> only output with "set list off", with "set list on", the output seems to
>> be OK. So the interference might be with the code responsible for column
>> formatting - and the output looks as if all non-printable characters
>> (according to locale setting) were omitted.
> 
> This is proposed patch for HEAD.
> 

That's seems good, but I can't say (about the setlocale) if it's 100%
safe to be used with the embedded engine.

With *.*s format, sprintf returns errno 84 (Invalid or incomplete
multibyte or wide character) if data does not match the locale.

Fortunately seems like we never use *.*s in the engine.


Adriano

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to