gecko-dev/python/mozversioncontrol
Connor Sheehan 02b9156f7c Bug 1857512: use `utf-8` encoding for mozversioncontrol VCS commands r=zeid
`mozversioncontrol` runs currently use `universal_newlines`, which
is an alias for `text`. This forces the command output file object
to be opened in text mode using the platform's default encoding. On
Windows the default encoding is usually a single-byte encoding such
as `cp-1252`, which can cause issues when parsing patches that include
multi-byte sequences. Add an `encoding` option to `_run` with `utf-8`
as the default option and change the `check_output` call to use it.
Callers can revert to the previous behaviour quite easily by setting
`encoding=None` if necessary.

Differential Revision: https://phabricator.services.mozilla.com/D190710
2023-10-11 21:26:41 +00:00
..
mozversioncontrol Bug 1857512: use `utf-8` encoding for mozversioncontrol VCS commands r=zeid 2023-10-11 21:26:41 +00:00
test Bug 1835962: add support for `mach try` to submit to Lando r=zeid,mach-reviewers,ahochheiden 2023-10-02 14:31:43 +00:00
.ruff.toml Bug 1811850 - [lint] Replace isort linter with ruff, r=taskgraph-reviewers,linter-reviewers,marco,jcristau 2023-03-20 13:06:27 +00:00
setup.py Bug 1801836 - Remove no longer necessary 'from __future__' imports under python/. r=linter-reviewers,glandium,ahal DONTBUILD 2022-12-23 01:26:15 +00:00