Skip to content

Commit

Permalink
doxygen: set encoding for open files in generate-changelog.py
Browse files Browse the repository at this point in the history
This fixes an encoding problem in the python helper script
generate-changelog.py by setting it to `utf-8`. On FreeBSD
the default seems to be `ascii` which resulted in an error.
  • Loading branch information
smlng committed Sep 16, 2019
1 parent 25b09d8 commit b2d6d22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/doxygen/generate-changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@


def generate_changelog(template_filename, changelog_filename, output_filename):
with open(template_filename) as template, \
open(changelog_filename) as changelog, \
open(output_filename, "w") as output:
with open(template_filename, "r", encoding="utf-8") as template, \
open(changelog_filename, "r", encoding="utf-8") as changelog, \
open(output_filename, "w", encoding="utf-8") as output:
changelog_lines = []
release_title = re.compile(r"((RIOT-\d{4}\.\d{2} - Release Notes)|(Release 2013\.08))")
notes_template = re.compile(r"\[Notes\]")
Expand Down

0 comments on commit b2d6d22

Please sign in to comment.