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: bugzi...@mercurial-scm.org
          Reporter: spivox...@gmail.com
                CC: mercurial-devel@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.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to