https://bugzilla.wikimedia.org/show_bug.cgi?id=22555

--- Comment #14 from Philippe Verdy <verd...@wanadoo.fr> 2012-03-26 15:19:29 
UTC ---
Note that the non-handling of numeric character references as being equivalent
to the natively UTF-8 encoded character, is a separate bug. It does not just
affect #switch but also:


"{{LC:&#x41;}}" just returns "&#x41;" (the same as "A", which is a CAPITAL
letter !)

"{{LC:&#x4F;}}" just returns "&#x4f;" (same problem, only the hexadecimal
digits are converted to lowercase, but this has no impact on the represented
character itself which remains a CAPITAL letter).

Note that if there are nowiki sections in the input parameter of LC: and UC:,
these markers should NOT be stripped.

So the return from
  "{{LC:<nowiki>*</nowiki> SOME TEXT}}"
should first become:
  "{{LC:\x7F*\x7X SOME TEXT}}"
(here \x7F means the DEL character alone, which is filtered out and rejected
from the input wiki code as it is not plain-text). Then it will return:
  "\x7F*\x7F some text"
If you strip the markers from the input, it will return:
  "* some text"
And this will restart to generate a list item according to the wiki syntax!

Hope this helps...

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to