-
-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
commitizen_emoji cannot write to CHANGELOG #516
Comments
Maybe we could make the encoding configurable? |
'utf-8' should cover all encodings, but I'm fine with that. You'd have to change |
I seen the same issue on my end, and adding the |
Hi @adam-grant-hendry we've release a new version of commitizen. Could you please try whether 2.30.0 solve this issue? |
After I test it, the problem still exists. |
@Lee-W The problem still persists. I tried on You need to specify the |
@Lee-W I remember now why I never submitted a PR: I am on Windows and your This can be solved by using Git Bash: Git for Windows ships with git bash (i.e. a This is another issue and requires another PR to fix. |
Actually, even easier than that: Just switch to using a portable shebang: #!/usr/bin/env sh |
Hi @adam-grant-hendry , I notice you create another issue regarding to it. If pre-commit does not work, could you please use |
It would be even more helpful if you could document this on the doc for windows users. Thanks! |
Yes, great idea. I'll make another PR for docs. I can probably also resolve Issue #515 there as well. I spewed a bunch of comments there and have had some time to learn and practice, so I might clean that up a little bit and clarify things. |
Description
This is because
commitizen_emoji
uses unicode emoji characters, butcommitizen
does not specify the file encoding inwrite_changelog()
, so it defaults back tocp1252
:commitizen/commitizen/commands/changelog.py
Line 92 in 7916511
This could be fixed by specifying the
utf-8
encoding:Steps to reproduce
Current behavior
See
Steps to reproduce
Desired behavior
Emojis can be logged to changelog
Screenshots
No response
Environment
The text was updated successfully, but these errors were encountered: