Issue Details (XML | Word | Printable)

Key: CORE-5409
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Alexander Peshkov
Reporter: Artyom Smirnov
Votes: 0
Watchers: 1

If you were logged in you would be able to see more operations.
Firebird Core

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

Created: 30/Nov/16 02:24 PM   Updated: 09/Dec/16 04:09 PM
Component/s: ISQL
Affects Version/s: 3.0.1, 3.0.2
Fix Version/s: None

Environment: Linux

QA Status: No test

 Description  « Hide
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

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.