diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-10-05 01:00:30 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-10-05 01:00:30 -0400 |
commit | 9d4507c5b61007df968638623aa1b4c47dae6cf9 (patch) | |
tree | 85c8c384ab772fa9e5efb039385714af96d171be /misc/findsuper.c | |
parent | 4259052093da329907e255b11bf3e799872828c7 (diff) | |
download | e2fsprogs-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.c | 1 |
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) { |