19.05.2020 13:22, Adriano dos Santos Fernandes wrote:

I have made small changes to jrt\cvt.cpp and common\cvt.cpp to correct
the behavior of varchars not enforcing size limits when there are
trailing spaces in the string and uses UTF-8 in FB 3.0 and 4.0.

Why do you say it's about UTF-8/MBCS only?

Doesn't this happen with all character sets?

Do you look in the standard and are you sure the thing is a problem?

 From my head I'm not sure about that.

Truncation of the trailing spaces is correct, this is defined in the SQL standard. Truncation at 40 bytes rather than at 10 characters is a bug, however. And this is due to UTF8, single-byte charsets are not affected.


Dmitry


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to