summaryrefslogtreecommitdiff
path: root/misc/findsuper.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/findsuper.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/findsuper.c')
-rw-r--r--misc/findsuper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/findsuper.c b/misc/findsuper.c
index e3baf2e0..6b5e16fc 100644
--- a/misc/findsuper.c
+++ b/misc/findsuper.c
@@ -131,6 +131,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
while ((c = getopt (argc, argv, "j")) != EOF) {