Last modified: 2011-12-07 03:12:40 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 T34359, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32359 - Language::commafy crops the last digit when formatting a negative number with a non-default pattern
Language::commafy crops the last digit when formatting a negative number with...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Santhosh Thottingal
: i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-11 11:16 UTC by Anoop
Modified: 2011-12-07 03:12 UTC (History)
6 users (show)

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


Attachments
Recent changes (6.43 KB, image/png)
2011-11-11 11:16 UTC, Anoop
Details

Description Anoop 2011-11-11 11:16:59 UTC
Created attachment 9419 [details]
Recent changes

In Malayalam Wikipedia (http://ml.wikipedia.org) While deleting some text from an article characters deleted count is showing incorrectly on Recent changes page. 

For example i have added the some text in a page (http://ml.wikipedia.org/w/index.php?title=%E0%B4%89%E0%B4%AA%E0%B4%AF%E0%B5%8B%E0%B4%95%E0%B5%8D%E0%B4%A4%E0%B4%BE%E0%B4%B5%E0%B5%8D:Anoopan/test&curid=162636&diff=1103576&oldid=1068504) and it shows +59 as the count in recent changes. But, while deleting the text from the page ( http://ml.wikipedia.org/w/index.php?title=%E0%B4%89%E0%B4%AA%E0%B4%AF%E0%B5%8B%E0%B4%95%E0%B5%8D%E0%B4%A4%E0%B4%BE%E0%B4%B5%E0%B5%8D:Anoopan/test&curid=162636&diff=1103577&oldid=1103576) it shows count as -5 only. Please see the screenshot also.
Comment 1 Liangent 2011-11-11 11:36:57 UTC
It seems the last character of every sizediff are cropped if the diff < 0. Is this true?
Comment 2 Anoop 2011-11-11 11:54:18 UTC
Yes.
Comment 3 Liangent 2011-11-11 12:36:43 UTC
I had a look at the database on Toolserver and see nothing unusual.
Comment 4 vssun 2011-11-11 14:03:10 UTC
The problem exists everywhere. Please see this diff at sawiki.

http://sa.wikipedia.org/w/index.php?title=%E0%A4%AF%E0%A5%8B%E0%A4%9C%E0%A4%95%E0%A4%83%3AVssun%2Ftest&action=historysubmit&diff=142990&oldid=142527

In the history it is showing that pagesize has reduced from 98 to 15 bytes. But in recent changes & watchlist it shows only -8
Comment 5 Liangent 2011-11-11 14:58:24 UTC
(In reply to comment #4)
> The problem exists everywhere. Please see this diff at sawiki.

Actually the problem only exists on wikis which are not using the default number grouping pattern. r97793 is responsible for this.
Comment 6 vssun 2011-11-11 15:05:23 UTC
What about metawiki? I think it is using default number grouping.
Comment 7 Liangent 2011-11-11 15:07:52 UTC
(In reply to comment #6)
> What about metawiki? I think it is using default number grouping.

Number grouping is based on your user interface language preference specified in [[Special:Preferences]].
Comment 8 vssun 2011-11-11 15:12:28 UTC
Yes! Thanks Liangent.
Comment 9 Santhosh Thottingal 2011-11-11 17:26:26 UTC
Addressed in r102802. Thanks for reporting.
Comment 10 vssun 2011-11-15 02:59:20 UTC
Now figures are showing well. But the minus mark (-) is not there. ie just is showing (250) instead of (-250)
Comment 11 Santhosh Thottingal 2011-11-15 04:38:36 UTC
(In reply to comment #10)
> Now figures are showing well. But the minus mark (-) is not there. ie just is
> showing (250) instead of (-250)

Fixed in r103128. Sorry about that oversight.
Comment 12 vssun 2011-12-07 03:12:40 UTC
Now it is OK

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


Navigation
Links