ANSI ODBC regression - strings are read in wrong encoding
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
r61976 changed ANSI GetStandardCodePageProc result. Now it is UTF-8 in Lazarus and not WIN-ANSI.
As a result, all ANSI strings that are read from 3rd party libraries and interfaces are corrupt.
Steps to reproduce:
See the attached project. Compile with FPC trunk because it has ODBC encoding fixes that are not present in FPC stable.
Additional information:
r61976 broke this. Before r61976 the result was correct.
Mantis conversion info:
- Mantis ID: 36481
- Version: 2.1 (SVN)
- Fixed in revision: 62474 (#6f1497ad)
- Target version: 2.2