-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid byte sequence in UTF-8
on Linux
#152
Comments
You may need to use |
Thanks for your consideration.—I seem not to have an From the stacktrace below it would appear that the real issue is hidden in these two lines:
Maybe there are no suitable binaries for the Raspi ARM architecture? OTOH the first indicted line, (91 of 88 when :jhead, :'jpeg-recompress'
89 capture("#{escaped_path} -V 2> #{Path::NULL}")[/\d+(\.\d+)+/]
90 when :jpegtran
91 capture("#{escaped_path} -v - 2>&1")[/version (\d+\S*)/, 1]
92 when :pngcrush
93 capture("#{escaped_path} -version 2>&1")[/pngcrush (\d+(\.\d+)+)/, 1]
94 when :pngout
95 date_regexp = /[A-Z][a-z]{2} (?: |\d)\d \d{4}/ and indeed, when I replace that RegEx stuff with a constant string Full stacktrace with
|
I suggest to inspect the value of |
I installed
image_optim
on my Raspberry and find that I can't useimage_optim
because of an encoding error that sadly comes without any stacktrace. I remembered that Ruby had some encoding issues in older versions (?1.9?), so I made sure that I haveruby2.2
installed; I removed the existingimage_optim
and re-installed withsudo gem2.2 install image_optim_pack image_optim
. But the error still persists:That's all I get as output, except there's now a mysteriously-named file in the directory:
The questionmarks are really replacement characters; using my Linux Mint file browser over
sshfs
I can see that the first byte is0x01
, and the one right before the second@
is0x04
.The weird thing is that I can install and run
image_optim
on my Linux Mint box without errors, so the error should be caused by a difference between the two systems, notimage_optim
per se.Here's what
uname -a
gives me:How can I proceed from here?
The text was updated successfully, but these errors were encountered: