View Issue Details

IDProjectCategoryView StatusLast Update
0001908JEDI VCL00 JVCL Componentspublic2004-07-01 14:23
ReporteranonymousAssigned To 
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0001908: 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 with 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.

Activities

user72

2004-06-30 14:23

  ~0004651

Wrong group. Please move to "Code Library"

anonymous

2004-06-30 14:30

viewer   ~0004652

OK, I don't have an account, so it's copied to:

http://homepages.borland.com/jedi/issuetracker/bug_view_page.php?bug_id=0001909

user72

2004-07-01 14:23

  ~0004659

See 0001909

Issue History

Date Modified Username Field Change
2004-06-30 14:13 anonymous New Issue
2004-06-30 14:23 user72 Note Added: 0004651
2004-06-30 14:30 anonymous Note Added: 0004652
2004-07-01 14:23 user72 Status new => closed
2004-07-01 14:23 user72 Note Added: 0004659