Skip to content

Commit

Permalink
Add comments to explicitly remind of the required encoding for all is…
Browse files Browse the repository at this point in the history
…s files.
  • Loading branch information
bclothier committed Apr 20, 2018
1 parent 4bfde8a commit 4568b9d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Rubberduck.Deployment/BuildRegistryScript.ps1
Expand Up @@ -76,7 +76,8 @@ try

$writer = New-Object Rubberduck.Deployment.Writers.InnoSetupRegistryWriter;
$content = $writer.Write($entries);


# The file must be encoded in UTF-8 BOM
$regFile = ($includeDir + ($file -replace ".dll", ".reg.iss"));
$encoding = New-Object System.Text.UTF8Encoding $true;
[System.IO.File]::WriteAllLines($regFile, $content, $encoding);
Expand Down
@@ -1,4 +1,4 @@
; English Custom Messages Include
; English Custom Messages Include -- Must be encoded in UTF-8 BOM
English.PerUser=Current User
English.Everyone=All Users
English.RegisterAddin=Repair VBE Addin registration
Expand Down
@@ -1,4 +1,4 @@
; French Custom Messages Include
; French Custom Messages Include -- Must be encoded in UTF-8 BOM
French.PerUser=Utilisateur courant
French.Everyone=Tous les utilisateurs
French.RegisterAddin=Réparer l'enregistrement du complément VBE
Expand Down
@@ -1,4 +1,4 @@
; German Custom Messages Include
; German Custom Messages Include -- Must be encoded in UTF-8 BOM
German.PerUser=Aktueller Benutzer
German.Everyone=Alle Benutzer
German.RegisterAddin=VBE AddIn Registrierung reparieren
Expand Down
4 changes: 3 additions & 1 deletion Rubberduck.Deployment/InnoSetup/Installer Build Script.iss
@@ -1,4 +1,6 @@
#pragma include __INCLUDE__ + ";" + SourcePath + "\Includes\"
;The file must be encoded in UTF-8 BOM

#pragma include __INCLUDE__ + ";" + SourcePath + "\Includes\"

#define protected
#ifndef Config
Expand Down

0 comments on commit 4568b9d

Please sign in to comment.