Skip to content

Conversation

@eblis
Copy link
Contributor

@eblis eblis commented Jan 12, 2017

PR checklist

  • Read the contribution guildelines.
  • Ran the shell/batch script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates)
  • Filed the PR against the correct branch: master for non-breaking changes and 2.3.0 branch for breaking (non-backward compatible) changes.

Description of the PR

Enforce UTF-8 encoding when reading mustache template files, similar to how UTF-8 is enforced when the resulting files are written to disk. Fixes #4544.

@wing328 wing328 added this to the v2.2.2 milestone Jan 12, 2017
@wing328
Copy link
Contributor

wing328 commented Jan 12, 2017

@eblis thanks for the PR, which looks good to me. I'll merge it later today if no one else has further feedback on it.

@wing328 wing328 merged commit af43190 into swagger-api:master Jan 12, 2017
@wing328
Copy link
Contributor

wing328 commented Jan 12, 2017

@eblis thanks for your contribution. PR merged into master.

kring pushed a commit to TerriaJS/swagger-codegen that referenced this pull request Feb 12, 2017
@wing328 wing328 changed the title When reading mustache template files assume UTF-8 encoding, fixes #4544. Enforce UTF-8 encoding when reading mustache template files Feb 22, 2017
davidgri pushed a commit to davidgri/swagger-codegen that referenced this pull request May 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants