Sobesednik / node-exiftool

A Node.js interface to exiftool command-line application.
MIT License
91 stars 15 forks source link

only throw warning if perl locale is missing #56

Open firstdorsal opened 3 years ago

firstdorsal commented 3 years ago

i am using your tool with electron and it terminates with the error:

perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = "en-US",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").

using it without electron doesn't throw an error on the same system. this logs the error as warning but won't exit.

claytonrothschild commented 2 years ago

What causes this perl locale error in the first place? Can anybody point me in the right direction?

Here is my error:

Error: Unexpected string on start: perl: warning: Setting locale failed.
  perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_TERMINAL = "iTerm2",
    LC_TERMINAL_VERSION = "3.4.12",
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
      are supported and installed on your system.
  perl: warning: Falling back to a fallback locale ("en_US.UTF-8").