View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001908 | JEDI VCL | 00 JVCL Components | public | 2004-06-30 14:13 | 2004-07-01 14:23 |
| Reporter | anonymous | Assigned To | |||
| Priority | normal | Severity | trivial | Reproducibility | always |
| Status | closed | Resolution | open | ||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0001908: JclUnicode.CharSetFromLocale - result ignored | ||||
| Description | TranslateCharsetInfoEx can return <false> on some systems (on my OS it is for LCID = $042B). This fact is ignored by the current version of JclUnicode.CharSetFromLocale with gives some range check errors during run time. | ||||
| Additional Information | Better version: function CharSetFromLocaleEx(Language: LCID; var FontCharSet: TFontCharSet): Boolean; var CP: Cardinal; CSI: TCharsetInfo; begin CP:= CodePageFromLocale(Language); Result := TranslateCharsetInfoEx(Pointer(CP), CSI, TCI_SRCCODEPAGE); if Result then FontCharset := CSI.ciCharset; end; | ||||
| Tags | No tags attached. | ||||