Todd C. Miller
|
acf8af9aac
|
#unifdef HAVE_SETLOCALE, it is C89 so no need to check for it.
|
2012-11-12 08:51:58 -05:00 |
|
Todd C. Miller
|
336021a9c0
|
Fix compilation on systems w/o setlocale()
|
2012-11-12 05:36:43 -05:00 |
|
Todd C. Miller
|
c1db4b1546
|
Always include locale.h from gettext.h so we no longer need to
include locale.h from the .c files.
|
2012-11-11 20:23:53 -05:00 |
|
Todd C. Miller
|
a0c53bd751
|
Call gettext inside log_error et al instead of having the caller do it. This way we can display any messages to the user in their own locale but log in the sudoers local.
|
2012-11-08 15:37:44 -05:00 |
|
Todd C. Miller
|
4207589fe2
|
Add simple locale switching to make it easy to switch from the
user's locale to the sudoers locale without making excessive
setlocale() calls when we don't need to.
|
2012-11-08 15:37:43 -05:00 |
|