FirebirdSQL/firebird-odbc-driver

SQLPutData for text BLOBs doesn't do correct codepage translation for SQL_C_WCHAR source data [ODBC161]

firebird-automations opened this issue · 5 comments

Submitted by: Jojakim Stahl (jstahl)

Jira_subtask_outward ODBC162

Attachments:
bug-161-162.patch

I observed, that when I call SQLPutData for a BLOB SUB_TYPE TEXT CHARACTER SET UTF8 column which is bound to a SQL_C_WCHAR data_at_exec source type, the codepage conversion is not done correctly. Apparently, as destination CP, always the current Windows Codepage is used, instead of UTF8.

Commits: 9fca7df d94a113

Commented by: Jojakim Stahl (jstahl)

Uploaded patch for ODBC161 and ODBC162. The fixes for ODBC162 affected the same code as ODBC161, so I turned ODBC162 in subtask of ODBC161.

Modified by: Jojakim Stahl (jstahl)

Attachment: bug-161-162.patch [ 12609 ]

Commented by: @alexpotapchenko

Fixed in CVS

Modified by: @alexpotapchenko

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

resolution: Fixed [ 1 ]

Fix Version: 2.0.5 [ 10771 ]

Fix Version: 2.1 Beta [ 10410 ]

Modified by: @alexpotapchenko

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