[Bug 6559] New: Followlines button shows +/- wrongly owing to unicode woes
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Fri Jul 30 08:11:40 UTC 2021
https://bz.mercurial-scm.org/show_bug.cgi?id=6559
Bug ID: 6559
Summary: Followlines button shows +/- wrongly owing to unicode
woes
Product: Mercurial
Version: unspecified
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: bug
Priority: wish
Component: hgweb
Assignee: bugzilla at mercurial-scm.org
Reporter: spivoxity at gmail.com
CC: mercurial-devel at mercurial-scm.org
Python Version: ---
I'm hosting hgweb under Apache on Debian, and accessing it using Chrome on
Debian.
When browsing a file, the "Followlines" feature displays a button next to the
line number. The button should show a green + and a red - (minus sign), but on
my setup the minus sign shows as garbled unicode. I've no idea what
combination of operating systems, browser and Apache setup is causing the
difficulty, but the fix below should be benign.
The fix is simple: in /usr/share/mercurial/templates/static/followlines.js at
line 59:
minusSpan.textContent = '-';
(where the - is actually a unicode minus), replace this with
minusSpan.textContent = '\u2212';
to make the unicode value explicit.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list