Wildcard in UTF-8 filenames

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Wildcard in UTF-8 filenames

Post by snibgo »

Initially reported on thread "Imagemagick getting stuck while converting tif file."

IM v7.0.1 on Windows 7, x64.

The problem boils down to:

Code: Select all

magick 481藉我賜恩褔*.tif -units PixelsPerInch -page Letter -density 72 481藉我賜恩褔.pdf
These are Chinese UTF-8 characters. The input has a "*" wildcard. IM fails.
PhotoCat wrote:It sometimes gives me an error message: (sometimes but not always)

"Imagemagick Studio Library and utility programs has stopped working"
The workaround is to rename the files to use only ASCII characters, or provide an explicit list of filenames with no wildcard.

I suspect IM may have a bug handling wildcards with UTF-8 characters.
snibgo's IM pages: im.snibgo.com
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Wildcard in UTF-8 filenames

Post by dlemstra »

I cannot reproduce the issue with the latest version of IM7 on Windows 10 x86. Is it possible to share a file and a command to reproduce the issue?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Wildcard in UTF-8 filenames

Post by snibgo »

I suggest you ask PhotoCat. See viewtopic.php?f=1&t=27065&start=15#p136215
snibgo's IM pages: im.snibgo.com
Post Reply