Open deraffe opened 5 years ago
Not that I think the error is from there but, out of curiosity, did you actually run docker run --rm -ti -v test.kdbx:/tmp.kdbx:ro fopina/kdbxpasswordpwned:dev -u /tmp.kdbx
?
Because -v
requires full path, single name means named volume, not the file you are probably looking for
I truncated the long absolute path that was actually used. I did test this with different passwords and in as well as outside of docker (dev
as well as latest
), so I'm fairly sure the error stems from some difference between my local system setup and the docker image, possibly the locales setup.
Local env shouldn’t affect as only the vars you specify are passed (none there), I believe.
Any chance you could produce such error with a sample file and share it?
Does it work if you add this?
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
I had to do that in my dockerfile to get unicode passwords to work.
It seems the Alpine system needs some locales, so Python doesn't fall back to ASCII.