Page MenuHomePhabricator

mw.Title doesn't support Unicode characters out of BMP
Closed, ResolvedPublicBUG REPORT

Description

The JavaScript module mediawiki.Title doesn't uppercase Unicode characters out of the BMP as first character:

new mw.Title( '\uD803\uDCC0' ).getMain(); // U+10CC0 (OLD HUNGARIAN SMALL LETTER A)

returns
'\uD803\uDCC0' U+10CC0 (OLD HUNGARIAN SMALL LETTER A) expected result is:
'\uD803\uDC80' U+10C80 (OLD HUNGARIAN CAPITAL LETTER A).

Event Timeline

Fomafix changed the subtype of this task from "Task" to "Bug Report".Sep 18 2021, 9:18 AM

Change 721930 had a related patch set uploaded (by Fomafix; author: Fomafix):

[mediawiki/core@master] mediawiki.Title: Support Unicode characters out of BMP

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

matmarex subscribed.

Change 721930 merged by jenkins-bot:

[mediawiki/core@master] mediawiki.Title: Support Unicode characters out of BMP

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