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
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
PC Windows XP
: High normal (vote)
: ---
Assigned To: Brion Vibber
Depends on:
  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: ---


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:

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 [ 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 .
Comment 1 lɛʁi לערי ריינהארט 2006-01-20 01:32:16 UTC

Please see

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 .

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 
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"; ?>

With PHP 4.4.0 on Linux, and both PHP 4 and 5 on Mac OS X, I'm seeing the correct 
Comment 4 Brion Vibber 2006-01-20 08:34:11 UTC
Seems to be a widespread problem:

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:
The correct Unicode encoding is:

best regards reinhardt [[user:gangleri]]

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