Package manager: avoid corruption of translated header comments (which are obviously in UTF-8) in autogenerated package files.

git-svn-id: trunk@24564 -
This commit is contained in:
maxim 2010-04-10 21:17:42 +00:00
parent 65e13b3061
commit 4b25569b03

View File

@ -3496,12 +3496,12 @@ begin
+lisPkgMangThisFileWasAutomaticallyCreatedByLazarusDoNotEdit+e
+' '+lisPkgMangThisSourceIsOnlyUsedToCompileAndInstallThePackage+e
+' }'+e+e;
Src:=HeaderSrc
+'unit '+ExtractFileNameOnly(SrcFilename)+';'+e
Src:='unit '+ExtractFileNameOnly(SrcFilename)+';'+e
+e
+'interface'+e
+e;
Src:=BeautifyCodeOptions.BeautifyStatement(Src,0);
Src:=HeaderSrc+Src;
if UsedUnits<>'' then
Src:=Src
+BreakString('uses'+e+GetIndentStr(BeautifyCodeOptions.Indent)+UsedUnits+';',