Page MenuHomePhabricator

mw.text.encode and unbreakable space
Closed, ResolvedPublic

Description

mw.text.encode does not encode correctly unbreakable spaces.

example : mw.text.encode( mw.ustring.char( 160 ) ) returns '&#nbsp;' instead of ' '

This comes from line 35 of in [mediawiki/extensions/Scribunto.git] / engines / LuaCommon / lualib / mw.text.lua, where there is a '#' that should not be there.


Version: unspecified
Severity: normal

Details

Reference
bz70475

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:53 AM
bzimport set Reference to bz70475.
Zebulon84 created this task.Sep 6 2014, 4:54 AM

gerritadmin wrote:

Change 158872 had a related patch set uploaded by Jackmcbarn:
Output   instead of &#nbsp;

https://gerrit.wikimedia.org/r/158872

gerritadmin wrote:

Change 158872 merged by jenkins-bot:
Output   instead of &#nbsp;

https://gerrit.wikimedia.org/r/158872

The fix will be deployed to all WMF wikis by September 18th.