Don't emit the LC_CTYPE-not-set warning more than once.
authorNeal H. Walfield <neal@gnu.org>
Sat, 16 May 2015 11:37:46 +0000 (13:37 +0200)
committerNeal H. Walfield <neal@gnu.org>
Sat, 16 May 2015 11:37:46 +0000 (13:37 +0200)
commit9fdb05554b5fc9c6f6621d606ccf21c038c7b6cb
tree7b381ed7acdb6098168d703f4707bdb7623c81d0
parent222866894993041ceaca3ca4ef33373ab78bfdff
Don't emit the LC_CTYPE-not-set warning more than once.

* pinentry/pinentry.c (lc_ctype_unknown_warning): New variable.
(pinentry_utf8_to_local): Only emit the LC_CTYPE warning if
lc_ctype_unknown_warning is not set.  After emitted such a warning,
set lc_ctype_unknown_warning.
(pinentry_local_to_utf8): Likewise.
pinentry/pinentry.c