[Bug 31752] ImageMagick convert is not UTF-8 safe

2011-10-19 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31752

--- Comment #8 from Brion Vibber br...@wikimedia.org 2011-10-19 18:59:27 UTC 
---
Why bother messing with the locale stuff is the only thing we need it for is to
work around a broken escapeshellarg()?

(Offhand I'm not sure where these non-UTF8 Linux systems are coming from, I
guess I'm just spoiled by using mainstream distros for the last decade, which
seem to all default to UTF-8. ;)

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31752] ImageMagick convert is not UTF-8 safe

2011-10-19 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31752

--- Comment #9 from DaSch da...@daschmedia.de 2011-10-19 19:24:10 UTC ---
I got this non-UTF-8 Linux with my V-Server, it's just a minimalistic
installation of Ubuntu. That's not about the distro, but about the typ of
installation.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31752] ImageMagick convert is not UTF-8 safe

2011-10-18 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31752

Mark A. Hershberger m...@everybody.org changed:

   What|Removed |Added

   Priority|Unprioritized   |Low
 CC||m...@everybody.org

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31752] ImageMagick convert is not UTF-8 safe

2011-10-16 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31752

--- Comment #1 from DaSch da...@daschmedia.de 2011-10-16 14:21:42 UTC ---
And at the same time the converting of images with only ASCII characters works
with ImageMagick

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31752] ImageMagick convert is not UTF-8 safe

2011-10-16 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31752

--- Comment #2 from DaSch da...@daschmedia.de 2011-10-16 15:26:26 UTC ---
Well the problem appears when locals on the server are not in UTF-8
I added a HowTo to mediawiki
http://www.mediawiki.org/wiki/Manual:Errors_and_symptoms#Image_Thumbnails_not_working_and.2For_appearing

But maybe this should be checked somehow

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31752] ImageMagick convert is not UTF-8 safe

2011-10-16 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31752

--- Comment #3 from DaSch da...@daschmedia.de 2011-10-16 17:26:36 UTC ---
Maybe something like a diagnosis special page would be helpful?

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l



[Bug 31752] ImageMagick convert is not UTF-8 safe

2011-10-16 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31752

--- Comment #4 from Bryan Tong Minh bryan.tongm...@gmail.com 2011-10-16 
17:54:43 UTC ---
Is there something left that we can do to fix this error on the MediaWiki side?
It's more like a server config problem.

Perhaps that the installer can trigger a warning if the locale is set wrong.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31752] ImageMagick convert is not UTF-8 safe

2011-10-16 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31752

--- Comment #5 from DaSch da...@daschmedia.de 2011-10-16 18:10:11 UTC ---
Yes that would be a good idea
I also started this extension
http://www.mediawiki.org/w/index.php?title=Special:Code/MediaWikipath=%2Ftrunk%2Fextensions%2FDiagnosis
Which could help to find possible problems

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31752] ImageMagick convert is not UTF-8 safe

2011-10-16 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31752

--- Comment #6 from Brion Vibber br...@wikimedia.org 2011-10-16 18:24:37 UTC 
---
Looks like wfInitShellLocale() tries to force a UTF-8 locale to work around
http://bugs.php.net/bug.php?id=45132 where escapeshellarg() destroys the
non-ASCII chars if your locale isn't properly set to UTF-8. (r41379)

I presume that's not working on a system that has missing or broken UTF-8
locales? (ick!)

IMHO any non-UTF8 locale should be quietly laid to rest in this day and age,
but it's nicer to just not have to run into the problem. ;)

If this is only a bug in escapeshellarg(), maybe we should just give up and
implement it ourselves -- wfEscapeShellArg() already does that for Windows,
where the stock escapeshellarg() is wildly incorrect.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 31752] ImageMagick convert is not UTF-8 safe

2011-10-16 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=31752

--- Comment #7 from DaSch da...@daschmedia.de 2011-10-16 20:06:17 UTC ---
I think the best way would be to check if UTF-8 is in locales under Linux and
go the windows way if it's not available
The point is, that on many minimal installation of linux UTF-8 is not set up

For regonition of such problems still a SpecialPage like the suggested in my
extension would be helpful

Something that other PHP-Software like Joomla or Piwik already have

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l