{"action":"created","issue":{"url":"https://api.github.com/repos/janfri/mini_exiftool/issues/22","labels_url":"https://api.github.com/repos/janfri/mini_exiftool/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/janfri/mini_exiftool/issues/22/comments","events_url":"https://api.github.com/repos/janfri/mini_exiftool/issues/22/events","html_url":"https://github.com/janfri/mini_exiftool/issues/22","id":63845807,"number":22,"title":"Weird error with unicode characters in path \"Wildcards don't work in the directory specification\"","user":{"login":"ccoenen","id":124909,"avatar_url":"https://avatars.githubusercontent.com/u/124909?v=3","gravatar_id":"","url":"https://api.github.com/users/ccoenen","html_url":"https://github.com/ccoenen","followers_url":"https://api.github.com/users/ccoenen/followers","following_url":"https://api.github.com/users/ccoenen/following{/other_user}","gists_url":"https://api.github.com/users/ccoenen/gists{/gist_id}","starred_url":"https://api.github.com/users/ccoenen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccoenen/subscriptions","organizations_url":"https://api.github.com/users/ccoenen/orgs","repos_url":"https://api.github.com/users/ccoenen/repos","events_url":"https://api.github.com/users/ccoenen/events{/privacy}","received_events_url":"https://api.github.com/users/ccoenen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-03-23T22:09:16Z","updated_at":"2015-03-29T21:12:19Z","closed_at":null,"body":"This may not be a bug in mini_exiftool, but right now, i don't really know what to make of it. If you could help me pin it down, that would be amazing.\r\n\r\nI'm on windows, and i have path names that contain unicode characters. One path looks like this:\r\n\r\n    C:\\tmp\\2015-03-23 Test with german umlaut äöü\\IMG_1000.JPG\r\n\r\nNow if i fire up an `irb`, i can open that file with ruby, but not with mini_magick\r\n\r\n```ruby\r\nf = File.open(\"C:/tmp/2015-03-23 Test with german umlaut äöü/IMG_1000.JPG\")\r\n# => #<File:C:/tmp/2015-03-23 Test with german umlaut äöü/IMG_1000.jpeg>\r\nf.size\r\n# => 18713\r\n\r\n# so far, so good! Let's try mini_exiftool, now.\r\n    \r\nrequire 'mini_exiftool'\r\n# => true\r\nm = MiniExiftool.new(\"C:/tmp/2015-03-23 Test with german umlaut äöü/IMG_1000.JPG\")\r\n# MiniExiftool::Error: Wildcards don't work in the directory specification\r\n# No matching files\r\n\r\n#        from C:/Tools/Ruby21/lib/ruby/gems/2.1.0/gems/mini_exiftool-2.5.0/lib/mini_exiftool.rb:137:in `load'\r\n#        from C:/Tools/Ruby21/lib/ruby/gems/2.1.0/gems/mini_exiftool-2.5.0/lib/mini_exiftool.rb:101:in `initialize'\r\n#        from (irb):11:in `new'\r\n#        from (irb):11\r\n#        from C:/Tools/Ruby21/bin/irb:11:in `<main>'\r\n```\r\n\r\nnote that this is not a \"file not found\", because i can easily provoke that:\r\n\r\n```ruby\r\nm = MiniExiftool.new(\"C:/tmp/2015-03-23 Test with german umlaut äöü/IMG_1337.JPG\")\r\n# MiniExiftool::Error: File 'C:/tmp/2015-03-23 Test with german umlaut äöü/IMG_1337.JPG' does not exist.\r\n#        from C:/Tools/Ruby21/lib/ruby/gems/2.1.0/gems/mini_exiftool-2.5.0/lib/mini_exiftool.rb:121:in `load'\r\n#        ...\r\n```\r\n\r\nthe same example works fine, if i change the directory name to omit the `äöü` part:\r\n\r\n```ruby\r\nm = MiniExiftool.new(\"C:/tmp/2015-03-23 Test without german umlaut/IMG_1000.JPG\")\r\n# => #<MiniExiftool:0x3031f50 @opts={:numerical=>false, :composite=>true, ...\r\n```\r\n\r\nThe error message (*Wildcards don't work in the directory specification*) does not come from anywhere within mini_exiftool, at least not that i can find it with github's code search.\r\n\r\nExiftool itself is also not at fault (at least not alone), because i can do this without a problem:\r\n\r\n    > exiftool.exe \"C:\\tmp\\2015-03-23 Test with german umlaut äöü\\IMG_1000.JPG\"\r\n    ExifTool Version Number         : 9.90\r\n    File Name                       : IMG_1000.JPG\r\n    ...\r\n\r\nI'm really somewhat stuck."},"comment":{"url":"https://api.github.com/repos/janfri/mini_exiftool/issues/comments/87480504","html_url":"https://github.com/janfri/mini_exiftool/issues/22#issuecomment-87480504","issue_url":"https://api.github.com/repos/janfri/mini_exiftool/issues/22","id":87480504,"user":{"login":"ccoenen","id":124909,"avatar_url":"https://avatars.githubusercontent.com/u/124909?v=3","gravatar_id":"","url":"https://api.github.com/users/ccoenen","html_url":"https://github.com/ccoenen","followers_url":"https://api.github.com/users/ccoenen/followers","following_url":"https://api.github.com/users/ccoenen/following{/other_user}","gists_url":"https://api.github.com/users/ccoenen/gists{/gist_id}","starred_url":"https://api.github.com/users/ccoenen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccoenen/subscriptions","organizations_url":"https://api.github.com/users/ccoenen/orgs","repos_url":"https://api.github.com/users/ccoenen/repos","events_url":"https://api.github.com/users/ccoenen/events{/privacy}","received_events_url":"https://api.github.com/users/ccoenen/received_events","type":"User","site_admin":false},"created_at":"2015-03-29T21:12:19Z","updated_at":"2015-03-29T21:12:19Z","body":"I tried specifying the `-charset FileName=cp1252` (and `UTF8`, while i was at it), it didn't change the *file not found*."}}