Skip to content

Commit 25546fd

Browse files
authored
fix(generator): Fix charset used in file comparison
1 parent 4a8803c commit 25546fd

File tree

1 file changed

+1
-1
lines changed
  • google-apis-generator/lib/google/apis/generator

1 file changed

+1
-1
lines changed

google-apis-generator/lib/google/apis/generator/updater.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def analyze(base_dir, generator_result)
3030
version_content = changelog_content = nil
3131
generator_result.files.each do |path, content|
3232
full_path = File.join(base_dir, path)
33-
old_content = File.binread(full_path) if File.readable?(full_path)
33+
old_content = File.read(full_path) if File.readable?(full_path)
3434
if path == generator_result.version_path
3535
version_content = old_content || content
3636
elsif path == generator_result.changelog_path

0 commit comments

Comments
 (0)