Last modified: 2006-01-20 15:45:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 4679 - Can't reupload images with Ö as first character
Can't reupload images with Ö as first character
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
unspecified
PC Windows XP
: High normal (vote)
: ---
Assigned To: Brion Vibber
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-01-20 01:02 UTC by Fred Chess
Modified: 2006-01-20 15:45 UTC (History)
2 users (show)

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


Attachments

Description Fred Chess 2006-01-20 01:02:57 UTC
Hi. I can't reupload an image with Ö as first character. 

Following a conversation on the Wikimedia Commons Village Pump: 
http://commons.wikimedia.org/wiki/Commons:Village_pump#Bug_report

which goes as follows:

== Bug report ==

I've trying to reupload "[[:image:Östergötland coat of arms.png]]" but the uploading 
insists on renaming it into "[[:image:Stergötland coat of arms.png]]" / [[User:Fred 
chessplayer|Fred Chess]] 15:04, 19 January 2006 (UTC)

: I experience the same thing, with Firefox on Linux.  It appears to be a server-side 
problem.  File a report on [http://bugzilla.wikimedia.org bugzilla]? 
[[User:dbenbenn]] 19:18, 19 January 2006 (UTC)

::Attempted same upload via Internet Explorer. [... Didn't 
work]  '''[[User:Bastique|Bas]]'''  <sup>'''[[User talk:Bastique|parler]]'''</sup> 

---------------------------
I can't remember if it worked to reupload such filesbefore on Wikimedia Commons. 
However, it did work on Swedish Wikipedia as late as December 2005, as you can see 
from http://sv.wikipedia.org/wiki/Bild:%C3%96sterg%C3%B6tland.png .
Comment 1 lɛʁi לערי ריינהארט 2006-01-20 01:32:16 UTC
Hallo!

Please see
http://commons.wikimedia.org/wiki/special:Prefixindex/%D6?namespace=6

Please identify exactly the OS and browser versions.

Both IE and Firefox allows you to change "View" | "Character Encoding" | Unicode
(UTF-8) . What setting was used?

It seams that the browser of the reporter is sending an invalid character with a
value between 128 and 255 (I do not know which one).

Try also to paste the name at http://pastebin.com/ .

best regards reinhardt [[user:gangleri]]
Comment 2 Brion Vibber 2006-01-20 07:46:45 UTC
Confirmed something seems to be borked; tested IE 6.0 on WinXP SP2. Looking into 
it...
Comment 3 Brion Vibber 2006-01-20 08:09:55 UTC
This may be a bug in PHP. The filename gets trimmed with the basename() function; 
with PHP 5.0.5 and 5.1.2 on Linux systems I'm seeing this broken behavior:

<?php echo basename("Östergötland_coat_of_arms.png") . "\n"; ?>
stergötland_coat_of_arms.png

With PHP 4.4.0 on Linux, and both PHP 4 and 5 on Mac OS X, I'm seeing the correct 
result:
Östergötland_coat_of_arms.png
Comment 4 Brion Vibber 2006-01-20 08:34:11 UTC
Seems to be a widespread problem:
http://bugs.php.net/bug.php?id=33898

Not quite sure why I can't replicate it on my Mac, but I can on three separate 
Linux setups...

Will work around it by reimplementing basename(), since PHP folks don't seem to 
give a shit about it.
Comment 5 Brion Vibber 2006-01-20 09:11:46 UTC
Fixed on HEAD; added a wfBaseName() function which just does a regex. This version 
also understands "\" as well as "/" on both Unix and Windows; PHP's own basename() 
only understands "\" on Windows and Netware.

Removing bogus tracking bug; not a character conversion issue.
Comment 6 lɛʁi לערי ריינהארט 2006-01-20 15:45:02 UTC
Thanks Brion!

I was thinking about different codings für Ö (as %D6, %C3%96 and other OS
depending codings). 

In comment 1 I used:
http://commons.wikimedia.org/wiki/special:Prefixindex/%D6?namespace=6
The correct Unicode encoding is:
http://commons.wikimedia.org/wiki/special:Prefixindex/%C3%96?namespace=6

best regards reinhardt [[user:gangleri]]

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


Navigation
Links