Re: NLS locale problem

Denis Corbin <[email protected]>
Newsgroups gmane.comp.sysutils.backup.dar.support
Organization http://dar.linux.free.fr/
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 21/08/2019 10:19, andycapo--- via Dar-support wrote:> Hello, I'm
trying to run a precompiled version (downloaded from
> 
ftp://ftp.dm3c.org/dar.linux.free.fr/Releases/Dar_static/x86_64_GNU_Linu
x/dar_static_2.6.5_x86_64_GNU_Linux>
) on a Clear Linux machine.
> 
> The program complains not having NLS working, and aborts 
> execution.

Hello,

> 
> 
> a@cl ~ $ ./dar_static_2.6.5_x86_64_GNU_Linux Cannot set locale 
> category, native language support will not work

this is just a warning about the fact that the file usually found in
/usr/share/locale/*/LC_MESSAGES/dar.mo
which contain the dar/libdar translated messages for your locale are
not available. So message will show in English

> FATAL error, aborting operation GPGME engine not available: 
> OpenPGP

this above is the reason of the error. Dar relies on gpgme which is a
library that relies on the external gpg external program (known as
"engine" or "backend" in the gpgme documentation). Dar_static has
gpgme library embedded but cannot have the /usr/bin/gpg backend
embedded (/usr/bin or at other place available in the PATH).

If you do not use strong encryption the message should not show and
dar show work (just the locale relative warning). Same if you use
strong encryption but have gpg in your PATH. Other combination should
lead to this message.

> 
> 
> Locale definition seems to be correct:
> 
> 
> a@cl~ $ locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" 
> LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" 
> LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" 
> LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" 
> LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" 
> LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" 
> LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=
> 
> 
> I really don't know what should I do in order to get dar working.
> 
> In the help file: http://dar.linux.free.fr/doc/Notes.html#NLS I 
> read: "/On a system without gettext dar will not use gettext at 
> all. All messages will be in English/".

it is.

> 
> Do you think it would be reasonable that, instead of stopping its 
> execution, dar may fall-back to english messages?

it does, just a warning is issued, but you can also set LC_MESSAGE to
C or just unset all LANG and LC_* locale related variable, dar should
not issue any warning I guess.

> 
> Many thanks,
> 
> Andy

Regards,
Denis

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEOzEprx3d76WjfYGPCDGwvQPYsYIFAl1ehEYACgkQCDGwvQPY
sYI91Q//TCHr4LWpzB4ArPO2DWXUG+HbZwYejTCdTQXEl8UjEya9pUfTFngVS4xP
s5i2iJA8+qJdySW7BCxK+2x2OGm4UgK3KLaqOFl9jbuouwAsWqNpQ1eMTeG99W/Q
PpmRH5mYb/uT6hKO5CPAm822BzzC2rU8Q2eP189Vb3OGgE2rn/VznrvLgxyHv+wK
e9KiIneZg4lV5UrKE/UA3ESEeLAp7UZGDEg+Zsfj7NJo1U6/6Aa5xnlTjm/i2M5m
PmbiBPX7aNrPKP7K1L5aVIsk5UFjw1EoUhA7c9RwAf8peVaTJ6Qb4kZt6ki8Xpyb
gMX5TXvmvKZTh0Kl+qMpeeKx9lffLv6Yx5DLSnBwUphBx6vKvJZHJUjRe7itMJFw
+OhECEL4Aq0uS0htD/UOS+KqvsP6Y1YMWipBsog3Gx7XSmZ9VdatFE5kKIUHssvq
gydHnBC8t0e1/MhO97eJH6hLKew2EvhmAS2XfHo45PiYxHJsxCAVfRlIyE/Jmelr
WdajjLyNsgrgj1fzDtkNFZh7Nlme/7RXXYLM8QhpqAjM3cF+aW00Y7ieI2vqtPCE
PpMQL7Qlk8qvUFkbzu7w5df48Ih+T6g8AZfUu66iXe0qaSElqLph+1fMCmhpTr3D
mCEGPhdUaIZrqYFbQqUp2Gi96P9q7Q2sGiF074z6tZ+rk45n4mM=
=g3y5
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.