about summary refs log tree commit homepage
path: root/script
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-02-21 11:17:58 +0000
committerEric Wong <e@80x24.org>2023-02-21 12:18:04 +0000
commit4ffad9b0a60f40ee9717e22000c233fcba30b30d (patch)
tree970f72ee4a9f4014ec25671c1275c07374fd4c2e /script
parentf8cfe495cc2b89b5d20535279181fe013caf3cea (diff)
downloadpublic-inbox-4ffad9b0a60f40ee9717e22000c233fcba30b30d.tar.gz
Back in the old days, git didn't store commit encodings
and allowed messages in various encodings to enter history.
Assuming such a commit is UTF-8 trips up s/// operations
on buffers read with the `:utf8' PerlIO layer.  So clear
Perl's internal UTF-8 flag if we end up with something
which isn't valid UTF-8

An example is commit 7eb93c89651c47c8095d476251f2e4314656b292
in git.git ([PATCH] Simplify git script, 2005-09-07)
Diffstat (limited to 'script')
0 files changed, 0 insertions, 0 deletions