Skip to content

Commit 5ed7ffc

Browse files
committed
Merge branch 'next' into SimplyfyShadowedDeclarationTests
2 parents 775a9f7 + 5f9b32e commit 5ed7ffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rubberduck.VBEEditor/SafeComWrappers/VBA/VBComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private void ExportUserFormModule(string path)
114114

115115
var tempFile = ExportToTempFile();
116116
var tempFilePath = Directory.GetParent(tempFile).FullName;
117-
var contents = File.ReadAllLines(tempFile);
117+
var contents = File.ReadAllLines(tempFile, System.Text.Encoding.UTF7);
118118
var nonAttributeLines = contents.TakeWhile(line => !line.StartsWith("Attribute")).Count();
119119
var attributeLines = contents.Skip(nonAttributeLines).TakeWhile(line => line.StartsWith("Attribute")).Count();
120120
var declarationsStartLine = nonAttributeLines + attributeLines + 1;

0 commit comments

Comments
 (0)