Page MenuHomePhabricator

the diff cant show the chinese font
Closed, InvalidPublic

Description

Author: slboat

Description:
bad code cant view

if the diffrent content is not english,it's will show like a confusion code


Version: unspecified
Severity: normal

Attached:

SLboat-Mac-Screen_2013-12-25_19.19.34.jpg (212×682 px, 37 KB)

Details

Reference
bz58960

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:26 AM
bzimport set Reference to bz58960.
bzimport added a subscriber: Unknown Object (MLST).

bingle-admin wrote:

Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1580

I can't reproduce this bug, e.g. https://zh.m.wikipedia.org/wiki/Special:移动版差异/29624671...29624686 looks fine for me - could you provide a link to where are you seeing this?

Note that we're working on a new mobile diff system, so this bug will likely go away regardless, however it would be good to be able to reproduce it before going live.

sen: Please always provide exact steps to reproduce (in this case a URL / link) that anybody could follow to see the same problem. See https://www.mediawiki.org/wiki/How_to_report_a_bug

slboat wrote:

(In reply to comment #3)

sen: Please always provide exact steps to reproduce (in this case a URL /
link)
that anybody could follow to see the same problem. See
https://www.mediawiki.org/wiki/How_to_report_a_bug

sorry,my bad,i use the mw V1.22.0 and mobile front REL1_22,and it not see right on my site,here is it:
http://see.sl088.com/wiki/%E7%89%B9%E6%AE%8A:%E7%A7%BB%E5%8A%A8%E7%89%88%E5%B7%AE%E5%BC%82/71738...71744

Looks like a charset issue and might be a support request for https://www.mediawiki.org/wiki/Project:Support_desk but not a bug for Bugzilla. Which charset/character encoding do you use to store in the database?

slboat wrote:

it's utf-8,if not use mobilefront everything just go well

Definitely borked UTF-8 in reformatted diffs, however I couldn't reproduce it even using your PHP version, 5.5.7. What's your libxml version (php -i | grep libxml)?

Also, you can try the new diff system - install MobileFrontend from Git master and add $wgMFEnableBetaDiff = true; to LocalSettings.php - then in beta mode (available via Special:MobileOptions) you will get newer, nicer diffs.

slboat wrote:

Configure Command => './configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--with-pear' '--with-bz2' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-kerberos' '--enable-shmop' '--enable-calendar' '--with-libxml-dir=/usr' '--enable-xml' '--with-apxs2=/usr/sbin/apxs' '--with-mysql' '--with-pdo-mysql' '--with-gd' '--enable-dom' '--without-unixODBC' '--enable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--disable-dba' '--disable-phar' '--disable-fileinfo' '--enable-json' '--without-pspell' '--disable-wddx' '--with-curl' '--disable-posix' '--disable-sysvmsg' '--disable-sysvshm' '--disable-sysvsem' '--enable-mbstring' '--enable-intl' '--enable-opcache=no'
libxml Version => 2.6.26
libxml
libxml2 Version => 2.6.26

slboat wrote:

(In reply to comment #7)

Definitely borked UTF-8 in reformatted diffs, however I couldn't reproduce it
even using your PHP version, 5.5.7. What's your libxml version (php -i | grep
libxml)?

Also, you can try the new diff system - install MobileFrontend from Git
master
and add $wgMFEnableBetaDiff = true; to LocalSettings.php - then in beta mode
(available via Special:MobileOptions) you will get newer, nicer diffs.

i get the libxml info..and i use the mediawiki 1.22 version,is the trunk version will not fit this version of mediawiki?by the way.i love this extension,it's great!

Looks like your libxml2 is terribly outdated, even PHP 5.3 default builds have 2.7.8 these days. Regardless, some time from now beta diff will be the only diff available on mobile and it will have no XML trnasformations in principle.