Last modified: 2014-09-08 20:37:55 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 T72475, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70475 - mw.text.encode and unbreakable space
mw.text.encode and unbreakable space
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Scribunto (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Jackmcbarn
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-06 04:54 UTC by Zebulon84
Modified: 2014-09-08 20:37 UTC (History)
4 users (show)

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


Attachments

Description Zebulon84 2014-09-06 04:54:29 UTC
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.
Comment 1 Gerrit Notification Bot 2014-09-06 14:23:08 UTC
Change 158872 had a related patch set uploaded by Jackmcbarn:
Output   instead of &#nbsp;

https://gerrit.wikimedia.org/r/158872
Comment 2 Gerrit Notification Bot 2014-09-08 20:37:08 UTC
Change 158872 merged by jenkins-bot:
Output   instead of &#nbsp;

https://gerrit.wikimedia.org/r/158872
Comment 3 Jackmcbarn 2014-09-08 20:37:44 UTC
The fix will be deployed to all WMF wikis by September 18th.

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


Navigation
Links