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

Corrections of the codepage number for some collations. #47

Merged
merged 1 commit into from Apr 22, 2018

Conversation

lawrinn
Copy link
Collaborator

@lawrinn lawrinn commented Apr 19, 2018

According to https://msdn.microsoft.com/en-us/library/windows/desktop/dd317756(v=vs.85).aspx code page for latin1 is 1252, and not 850. The same for some other collations.
Changed "auto" charset detection to use only GetACP() on windows.
Since I guess C/ODBC is the only user of that feature, and because GetConsoleCP() returns OEM codepage, and not the default system codepage, which is used by DM as source codepage for recoding to unicode.

I am actually not completely sure if that 2nd part of the patch (about "auto" detection on Windows) is the right thing to do for C/C. Thus I do not insist - I can live without it. But I also really doubt anybody else is using it.

According to https://msdn.microsoft.com/en-us/library/windows/desktop/dd317756(v=vs.85).aspx code page for latin1 is 1252, and not 850. The same for some other collations.
Changed "auto" charset detection to use only GetACP() on windows.
Since I guess C/ODBC is the only user of that feature, and because GetConsoleCP() returns OEM codepage, and not the default system codepage, which is used by DM as source codepage for recoding to unicode.
@9EOR9 9EOR9 merged commit c8464af into master Apr 22, 2018
@9EOR9 9EOR9 deleted the connector_c_3.0-lawrin branch April 22, 2018 06:49
better0fdead added a commit to tarantool/mariadb-connector-c that referenced this pull request Oct 3, 2022
Updated compiled_charset_list prior to fix mariadb-corporation#47 in tarantool/mysql repo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants