HG problem: abort: decoding near '9: error: ‘sse2::l': 'ascii' codec can't decode byte 0xe2 in position 213: ordinal not in range(128)
I am developing mozilla patches locally under my local PC running
I often include the GCC's error/warning message in the mercurial
commit message (in the second and subsequent lines, the first line
for usage by mozilla's bugzilla procedure.) when my local patch is
created to address build error or suppress compiler warning.
It worked just fine for months/years.
After an upgrade of local tools under Debian GNU/Linux last month
so, I just noticed that such a patch with GCC warning line could
be re-applied after it was qpopped. (I use mercurial mqueue
This happened yesterday. This is the error message.
note: commit message saved in .hg/last-message.txt
abort: decoding near '9: error: ‘sse2::l': 'ascii' codec can't
decode byte 0xe2 in position 213: ordinal not in range(128)!
I was puzzled. After looking at the patch and the message above, I
finally figured out that that hg barfed on the proper quote
just before "sse2::l" above. Can you spot the slightly tilted
OPENING quote character?
So I removed the GCC warning line from the commit message and the
patch could be applied. This is problematic because I have about a
dozen patches (actually more) and some patches could not be
due to the error above. I had to temporarily removed the offending
patch(es). Luckily the offending patches are relatively
and taken out for the moment.
But this could not be done if the patches are interdependent and
must be applied in a certain order.
- GCC began producing such a non-ascii character lately (it is v7
my linux PC)
[but I think I must have seen such characters long time before
- the "ascii" codec or whatever used by python has become very
(But why ascii? Should we not use utf-8 after all?)
[this could be an issue with setup of hg under my Debian
GNU/Linux distribution?] , or
- something in my locale/character setting under Debian GNU/Linux
broke lately due to the upgrade of local packages.
My point is that I have NOT changed in my personal setting at all
(unless |./mach bootstrap| I occasionally run to make sure that I
have the latest rust and other tools did something funny to my
Only the tools and system-wide setting could have changed
mysteriously from my point of view.