Last modified: 2009-01-02 13:31:04 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 T14324, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 12324 - Support for non-ASCII characters in {{padleft:}} and {{padright:}} Magic Words
Support for non-ASCII characters in {{padleft:}} and {{padright:}} Magic Words
Status: RESOLVED DUPLICATE of bug 16852
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-16 14:48 UTC by Jesús Martínez Novo (Ciencia Al Poder)
Modified: 2009-01-02 13:31 UTC (History)
1 user (show)

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


Attachments

Description Jesús Martínez Novo (Ciencia Al Poder) 2007-12-16 14:48:51 UTC
{{padleft:}} and {{padright:}} doesn't support non-ASCII characters.

{{padleft:<word>|<repeats>|<character>}}

* Non-ASCII characters in the <word> field makes the <word> character count to grow, like each non-ASCII character counts as two or more ASCII characters.

Examples:

"{{padleft:cafe|8|-}}" gives "----cafe"

"{{padleft:café|8|-}}" gives "---café"

"{{padleft:caf♥|8|-}}" gives "--caf♥"

maybe because "e" is represented by 1 byte, "é" is represented by 2 bytes and "♥" is represented by 3 bytes.

* Non-ASCII characters in the <character> field makes the character that fills the extra gaps to be a "?", maybe because it only takes the first byte of the character represenation while the character is 2 or more bytes length.

Look <http://meta.wikimedia.org/wiki/Help:Magic_words#Formatting>
Comment 1 Jesús Martínez Novo (Ciencia Al Poder) 2007-12-23 19:31:39 UTC
Something really strange. Look at this page: <http://meta.wikimedia.org/w/index.php?title=Help%3AMagic_words&diff=794659&oldid=794618>.

When I edited that page, it was showing the content as normally, but some users complained about that the page was empty.

I don't know if that's related to that magic word, because when previewing the content is shown, but when saved no. Ant it happens randomly.

Please, go to <http://meta.wikimedia.org/w/index.php?title=User:Ciencia_Al_Poder/test&oldid=803241> (the first revision of the page) and hit the "Newer revision→" link until reach the last revision (at this moment, there are only 4 revisions) and annotate (in a paper, a note, a text file...) if the content is shown or not in each revision. Then return to the first revision (via history page, history of the browser, a link, etc) and do the same process (hit the "Newer revision→" link until reach the last revision) two or three times, annotating the result of each one. At least for me, none of them match!, That's what I got:

* oldid=803241: no content
* Newer revision: content
* Newer revision: content
* Newer revision: content

(going to history and select the first revision)
* oldid=803241: content
* Newer revision: content
* Newer revision: no content
* Newer revision: no content

(going to history and select the first revision)
* oldid=803241: content
* Newer revision: content
* Newer revision: no content
* Newer revision: no content

(going to history and select the first revision)
* oldid=803241: no content
* Newer revision: content
* Newer revision: no content
* Newer revision: content

(the 2nd and 3rd are equal but may be a coincidence)
Comment 2 Chad H. 2009-01-02 13:31:04 UTC
Duping to 16852, since it already has a proposed patch.

*** This bug has been marked as a duplicate of bug 16852 ***

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


Navigation
Links