|
Artyom Smirnov made changes - 30/Nov/16 02:36 PM
Artyom Smirnov made changes - 30/Nov/16 02:36 PM
Alexander Peshkov made changes - 30/Nov/16 02:39 PM
I can reproduce it on current 3.0 official binaries and own build with supplied editline library (external/editline). Can not reproduce it with --without-editline and --with-system-editline.
I tend to treat an ability to accept from stdin characters missing in selected locale as library implementation detail. Moreover what we have it builtin editline (skip such characters) looks better for me. I could not test with dos775 (my box is missing that particular locale) but I've tried with cp1251 (windows cyrillic) and if I set correct locale editline works fine:
localhost bin # export LANG=be_BY localhost bin # bash localhost bin # cat test1251.sql | ./isql -ch win1251 -e t775.fdb recreate table "Белорусский"( "врачар" varchar(50) character set win1251 ,"Блоб сабтип 1 чарактер сет" blob sub_type 1 character set win1251 ); Compare with: localhost bin # export LANG=en_US.UTF-8 localhost bin # bash localhost bin # cat test1251.sql | ./isql -ch win1251 -e t775.fdb recreate table " " 50) character set win1251 ," Expected end of statement, encountered EOF |
localhost bin # cat test775.sql | ./isql -ch dos775 -u sysdba -p masterkey localhost:/tmp/test.fdb
recreate table "������������"(
"���������" varchar(50) character set dos775
,"�isu ja kariste j�rved" blob sub_type 1 character set dos775
);
localhost bin # ./isql -u sysdba -p masterkey localhost:/tmp/test.fdb
Database: localhost:/tmp/test.fdb, User: SYSDBA
SQL> show table;
ĄČĘĢÆĖŠŚÖÜØ£
SQL> show table "ĄČĘĢÆĖŠŚÖÜØ£";
ąčęėįšųūž VARCHAR(50) CHARACTER SET DOS775 Nullable
Õisu ja kariste järved BLOB segment 80, subtype TEXT CHARACTER SET DOS775 Nullable
SQL>