sapling/eden/scm/tests/test-log-unicode.t
Xavier Deguillard c22f6ed35d cmdutil: fix hg log -Tjson with utf8 characters
Summary:
All of these are already valid utf-8 characters, no need to dance to
decode/encode them again.

Reviewed By: DurhamG

Differential Revision: D22978828

fbshipit-source-id: c5f6e25e71cdcaa1c0558d4a1181b667ffe379fb
2020-08-10 09:48:34 -07:00

27 lines
627 B
Raku
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#chg-compatible
$ hg init a
$ cd a
$ echo AA > A
$ hg commit -qAm "unicode quote: "
$ hg log -Tjson --debug
[
{
"rev": 0,
"node": "86378053da0a233e560e42ef149017c0ae7a7e4f",
"branch": "default",
"phase": "draft",
"user": "test",
"date": [0, 0],
"desc": "unicode quote: \xe2\x80\x99", (esc) (?)
"desc": "unicode quote: \u2019", (?)
"bookmarks": [],
"parents": ["0000000000000000000000000000000000000000"],
"manifest": "e014a281af7c5932257f42933049e389b86dc42e",
"extra": {"branch": "default"},
"modified": [],
"added": ["A"],
"removed": []
}
]