Last modified: 2014-09-06 09:22:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40579, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38579 - Size of changes - minus-sign instead of hyphen
Size of changes - minus-sign instead of hyphen
Status: NEW
Product: MediaWiki
Classification: Unclassified
History/Diffs (Other open bugs)
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on: 8327
  Show dependency treegraph
Reported: 2012-07-22 16:46 UTC by jogo.obb-wiki
Modified: 2014-09-06 09:22 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description jogo.obb-wiki 2012-07-22 16:46:21 UTC
In the version history of articles, mediawiki displays the size of changes in bytes. When the size of the change is negative, currently a hyphen-minus U+2010 (‐) is used. The correct sign would be the minus-sign U+2212 (−).
Comment 1 Platonides 2012-07-22 17:06:14 UTC
We are using - (hyphen-minus, U+002D) not ‐ (hyphen, U+2010). I'm not sure there's a benefit of using − (minus signm U+2212), given that hyphen-minus can work as a minus and is ASCII compatible.

The code to change would be Language::formatNum() at line 2881 of Language.php
Comment 2 TMg 2012-10-25 13:11:11 UTC
Set priority to "normal" per user request. I can confirm the current character is wrong. It's a common replacement for the minus sign but since we are using Unicode anyway I don't see a strong reason why the history and diff pages need to be ASCII compatible. They aren't anyway.
Comment 3 TMg 2012-11-27 11:18:58 UTC
It seems $wgMiserMode is the reason why the character is wrong.

So basically the bug is that {{formatnum:-12345}} prints negative numbers with the wrong minus character. Why is that? Bug 8327 is closed as "wontfix" without providing a proper reason.

Note You need to log in before you can comment on or make changes to this bug.