LConvEncoding: added ErrorMode for many UTF8To functions
Original Reporter info from Mantis: Alextp
-
Reporter name: CudaText man
Original Reporter info from Mantis: Alextp
- Reporter name: CudaText man
Description:
This is adding of ErrorMode parameter to all UTF8To* functions,
except UTF8 to UCS2 and UTF8 to UTF8 with/no bom.
Functions give error [inside it's char code =-1]
which was ignored before. Now it's ErrorMode:
- ignore error (like before)
- replace error to "?" (it is global variable char)
- raise exception
It's needed for CudaText to check, that user can save Unicode text to current ANSI codepage.
quick tested on CP1251 errors.
tested with define FPC_HAS_CPSTRING and w/o it.
Mantis conversion info:
- Mantis ID: 33686
- Platform: Linux x64
- Version: 1.9 (SVN)
- Fixed in revision: r59416 (#07607b4b)