dropbox / lepton

Lepton is a tool and file format for losslessly compressing JPEGs by an average of 22%.
https://blogs.dropbox.com/tech/2016/07/lepton-image-compression-saving-22-losslessly-from-images-at-15mbs/
Apache License 2.0
5.01k stars 355 forks source link

Unicode filename: Input file unable to be opened for writing #133

Closed winterNebs closed 4 years ago

winterNebs commented 4 years ago

Platform: windows 10 Locale: English (Canada)

When trying to use lepton on a file with a non English name, ie 你好.jpg, lepton reports the error

lepton v1.0-08c52d9280df3d409d9246df7ff166dd94628730
Input file unable to be opened for writing:??.jpg
winterNebs commented 4 years ago

I noticed there was a similar issue in https://github.com/mozilla/mozjpeg/issues/354

I tried compiling it myself, but couldn't seem to get it to work, wondering if there would be a way to provide an recompiled version that might fix it

winterNebs commented 4 years ago

In windows enabling the "Beta: UTF-8" setting in locale settings will solve this