View Issue Details

IDProjectCategoryView StatusLast Update
0001909JEDI Code LibraryJclUnicodepublic2005-02-13 19:30
ReporteranonymousAssigned ToRobert Rossmair 
PrioritynormalSeveritytrivialReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in VersionVersion 1.95 
Summary0001909: JclUnicode.CharSetFromLocale - result ignored
DescriptionTranslateCharsetInfoEx 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 which gives some range check errors during run time.
Additional InformationBetter 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;
TagsNo tags attached.
Fixed in GIT commit
Fixed in SVN revision
IDE version

Activities

Robert Rossmair

2005-02-13 19:30

developer   ~0006490

Suggested variant added as GetCharSetFromLocale. Win32Check added to CharSetFromLocale code.

Issue History

Date Modified Username Field Change
2004-06-30 14:29 anonymous New Issue
2005-02-13 19:30 Robert Rossmair Status new => resolved
2005-02-13 19:30 Robert Rossmair Fixed in Version => Version 1.95
2005-02-13 19:30 Robert Rossmair Resolution open => fixed
2005-02-13 19:30 Robert Rossmair Assigned To => Robert Rossmair
2005-02-13 19:30 Robert Rossmair Note Added: 0006490