Non-utf8 input from stdin in isql seems broken on linux
-------------------------------------------------------

                 Key: CORE-5409
                 URL: http://tracker.firebirdsql.org/browse/CORE-5409
             Project: Firebird Core
          Issue Type: Bug
          Components: ISQL
    Affects Versions: 3.0.1, 3.0.0, 3.0.2
         Environment: Linux
            Reporter: Artyom Smirnov
            Priority: Minor


Prepare file in some non-utf8 encoding. Found this example text in 
fbt-repository:

echo 'recreate table "ĄČĘĢÆĖŠŚÖÜØ£"(
        "ąčęėįšųūž" varchar(50) character set dos775
        ,"Õisu ja kariste järved" blob sub_type 1 character set dos775
);' | iconv -f utf8 -t cp775 > test775.sql

Try to execute it from stdin:

cat  test775.sql | bin/isql -ch dos775 -u sysdba -p masterkey 
localhost:/tmp/test.fdb 
Use CONNECT or CREATE DATABASE to specify a database

And we will get error:

Expected end of statement, encountered EOF

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

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

Reply via email to