slabtop: added remaining missing nls support

This commit is contained in:
Jim Warner 2011-11-03 11:07:47 -05:00 committed by Sami Kerola
parent 7b9b0c8d18
commit 0d27054a7b

View File

@ -9,6 +9,7 @@
* Copyright (C) 2003 Chris Rivera
*/
#include <locale.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@ -285,6 +286,10 @@ int main(int argc, char *argv[])
{ NULL, 0, NULL, 0 }
};
setlocale (LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
sort_func = DEF_SORT_FUNC;
while ((o = getopt_long(argc, argv, "d:s:ohV", longopts, NULL)) != -1) {