The following two patches add support for multibyte characters in ansic_* functions. Effectively it is changing behaviour of: 1) printf's %q format option 2) command not found error message 3) readline's syntax error message 4) XTRACE output
It's a set of two patches.