summaryrefslogtreecommitdiff
path: root/misc/chattr.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2011-10-05 01:00:30 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-10-05 01:00:30 -0400
commit9d4507c5b61007df968638623aa1b4c47dae6cf9 (patch)
tree85c8c384ab772fa9e5efb039385714af96d171be /misc/chattr.c
parent4259052093da329907e255b11bf3e799872828c7 (diff)
downloade2fsprogs-9d4507c5b61007df968638623aa1b4c47dae6cf9.tar.gz
Pass the gettext() function to libcom_err
For those e2fsprogs programs which use libcom_err and are internationalized, pass the gettext() function to libcom_err during program initialization. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'misc/chattr.c')
-rw-r--r--misc/chattr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/chattr.c b/misc/chattr.c
index 69aaed1c..8a2d61f9 100644
--- a/misc/chattr.c
+++ b/misc/chattr.c
@@ -301,6 +301,7 @@ int main (int argc, char ** argv)
setlocale(LC_CTYPE, "");
bindtextdomain(NLS_CAT_NAME, LOCALEDIR);
textdomain(NLS_CAT_NAME);
+ set_com_err_gettext(gettext);
#endif
if (argc && *argv)
program_name = *argv;