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
French insensitive collation FR_FR_CI_AI [CORE1366] #1784
Comments
Modified by: @asfernandesstatus: Open [ 1 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: 2.1 Beta 2 [ 10190 ] |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Modified by: @pcisarWorkflow: jira [ 12612 ] => Firebird [ 14189 ] |
Commented by: @pavel-zotov Adriano (Philippe ?) - can you please show proper usage of this collation ? I've tried this: -- (drop dependencies if any) set term ^; create collation coll_fr for iso8859_1 from external ('FR_FR') case insensitive accent insensitive; recreate table test(id int, cf varchar(10) collate coll_fr); recreate table noac(id int, nf varchar(10) collate coll_fr); show collation coll_fr; insert into test(id, cf) values( gen_id(g,1), 'ç'); insert into noac(id, nf) values( gen_id(g,1), 'A'); select http://n.id n_id, http://n.nf, http://t.cf, http://t.id t_id -- and got something strange: COLL_FR, CHARACTER SET ISO8859_1, FROM EXTERNAL ('FR_FR'), CASE INSENSITIVE, ACCENT INSENSITIVE ID INTEGER Nullable
============ ========== ========== ============ How comparison of 'A' (upper-cased, no-accent) and other vowels ('E', 'I', 'O', 'U' ) or 'C' with cedilla accent, can return TRUE ? |
Commented by: @asfernandes What version? I do not see this with trunk. |
Commented by: @asfernandes No problem in 2.5 too. |
Commented by: @pavel-zotov I'm trying on WI-T3.0.0.31840 (both database and client on Windows XP host). PS. http://en.wikipedia.org/wiki/ISO/IEC_8859-1 -- states that "Code page 28591 a.k.a. Windows-28591 is the actual ISO-8859-1 codepage". |
Modified by: @pavel-zotovAttachment: c1366-running-on-cmd-console-with-chcp_28591.PNG.zip [ 12746 ] |
Commented by: @pavel-zotov I've just tried on LI-T3.0.0.31827 with: $ locale -- and see the SAME result as on Windows. Slightly modified test: set names iso8859_1; show version; set list on; recreate table test(id int); set term ^; create collation coll_fr for iso8859_1 from external ('FR_FR') case insensitive accent insensitive; recreate table test(id int, cf varchar(10) collate coll_fr); recreate table noac(id int, nf varchar(10) collate coll_fr); show collation coll_fr; insert into test(id, cf) values( gen_id(g,1), 'ç'); insert into noac(id, nf) values( gen_id(g,1), 'A'); select http://n.id n_id, http://n.nf, http://t.cf, http://t.id t_id Result (screenshot from Putty console) see in attached .zip. |
Modified by: @pavel-zotovAttachment: c1366-running-on-LINUX-console-with-utf8-locale.png [ 12747 ] |
Commented by: @asfernandes Try puting the commands in a file saved with ISO8859-1 charset and 'input' it in ISQL. |
Commented by: @asfernandes It's obviously in your Windows screenshot that you're having a conversion problem, not a comparation problem. |
Commented by: @pavel-zotov > Try puting the commands in a file saved with ISO8859-1 charset and 'input' it in ISQL. All works fine, thanks. Script should be encoded in iso8859-1 rather than in utf8. |
Submitted by: @pmakowski
Attachments:
c1366-running-on-cmd-console-with-chcp_28591.PNG.zip
c1366-running-on-LINUX-console-with-utf8-locale.png
Add French case-/accent-insensitive collation.
Commits: 5d06ef3
The text was updated successfully, but these errors were encountered: