On 05/22/12 22:49, Michal Kubecek wrote: > Hello, > > when Firebird (at least HEAD and B2_5_Release) is built with > --with-system-editline on OpenSuSE 12.1 (libedit 3.0), history in isql > is broken: isql remembers only first character from each line. > > This can be prevented by calling setlocale(LC_ALL, "") (actually, > LC_COLLATE is sufficient). I have tested attached patch on both 3.0 and > 2.5 (attached version is for 3.0) but I'm not sure that it doesn't > break something on non-unix platforms.
On non-unix (i.e. windows) editline is not used - windows has own command line editor. But I'm far not sure how will this affect selecting and inputting national characters. Specially taking into an account that client library converts national characters in database name and string DPB/SPB items to UTF8. Cleaning LC_ALL will sooner of all prevent correct operation of it. I suppose that other programs (starting with bash) remember history correctly? May be (if there is no other way to fix) locale info should be restored after leaving editline routines? ------------------------------------------------------------------------------ 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