Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New collation not installed [CORE1364] #1782

Closed
firebird-automations opened this issue Jul 18, 2007 · 6 comments
Closed

New collation not installed [CORE1364] #1782

firebird-automations opened this issue Jul 18, 2007 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @pmakowski

Attachments:
c1364-wrong-result-when-connect-using-utf8-charset.zip

trying to add a new collation fail

execute procedure sp_register_collation ('ISO8859_1', 'FR_FR_CI_AI','FR_FR',7);
COMMIT;

SELECT F1 FROM T1 WHERE F1 COLLATE FR_FR_CI_AI LIKE '%u%'
Error "COLLATION FR_FR_CI_AI for CHARACTER SET ISO8859_1 is not installed"

====== Test Details ======

Waiting for reply on note 31-AUG-2018 10:53.

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 12610 ] => Firebird [ 14203 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @pavel-zotov

Consider two scripts from attached file ("c1364-wrong-result-when-connect-using-utf8-charset.zip").

1) When I run in command prompt test that uses ISO8859_1 as connection charset then all works fine:
C:\MIX\firebird\QA\fbt-repo\tmp>chcp 1252
<current code page is>: 1252

C:\MIX\firebird\QA\fbt-repo\tmp>C:\MIX\firebird\fb40\isql -q -i c1364-iso8859.sql 1>c1364-iso8859.log
(log see in attach)

2) But when i change code page to 65001 (somewhat like utf8 for Windows) and use UTF8 as connection charset than almost half of required output is missed.
This is how iit can be done:

C:\MIX\firebird\QA\fbt-repo\tmp>chcp 65001
<current code page is>: 65001

C:\MIX\firebird\QA\fbt-repo\tmp>C:\MIX\firebird\fb40\isql -q -i c1364-utf8.sql 1>c1364-utf8.log
File c1364-utf8.log also see in attach.

Is it expected ?

PS.

One may to check result of following statements rather than downloading zip and run test scripts:

select 1 from rdb$database where _iso8859_1 'àâçéèêëîïôùûü' collate fr_fr_ci_ai like '%î%';
select 2 from rdb$database where _iso8859_1 'ÀÂÇÉÈÊËÎÏÔÙÛÜ' collate fr_fr_ci_ai like '%Ô%';

If you will run them using UTF8 charset then result will be empty (no rows).

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

Attachment: c1364-wrong-result-when-connect-using-utf8-charset.zip [ 13298 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: Deferred

Test Details: Waiting for reply on note 31-AUG-2018 10:53.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants