Migrate 5 MediaWiki extensions away from UtfNormal in MediaWiki core to external UtfNormal library (II)

This should be a rather easy task.

MediaWiki's UtfNormal library has been split into a separate wikimedia/utfnormal Composer package in MediaWiki version 1.25. However some extensions still use it:

PdfHandler/PdfHandler.image.php 141: $pages[$page] = UtfNormal::cleanUp( $pageText );

PhpTags/PhpTags.body.php 74: return \UtfNormal::cleanUp($return); 137: return \UtfNormal::cleanUp($return);

Translate/ffs/SimpleFFS.php 120: $input = UtfNormal::cleanUp( $input );

TranslationNotifications/extensions/Translate/ffs/SimpleFFS.php 120: $input = UtfNormal::cleanUp( $input );

Transliterator/Transliterator_body.php 219: $word = UtfNormal::toNFD( $word ); 482: return UtfNormal::toNFC( $output );

These extensions should all be fixed in order to clean the MediaWiki core code base of fallback code. This task is very straightforward (see this example patch). You are expected to provide patches in Wikimedia Gerrit (one patch per repository).

Task tags

  • php
  • cleanup

Students who completed this task

Justin Du

Task type

  • code Code