free: added remaining missing nls support
This commit is contained in:
parent
faed131f10
commit
7b9b0c8d18
6
free.c
6
free.c
@ -11,11 +11,13 @@
|
|||||||
* Copyright 2003 Robert Love
|
* Copyright 2003 Robert Love
|
||||||
* Copyright 2004 Albert Cahalan
|
* Copyright 2004 Albert Cahalan
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "proc/sysinfo.h"
|
#include "proc/sysinfo.h"
|
||||||
#include "proc/version.h"
|
#include "proc/version.h"
|
||||||
#include "c.h"
|
#include "c.h"
|
||||||
#include "nls.h"
|
#include "nls.h"
|
||||||
|
|
||||||
|
#include <locale.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
@ -204,6 +206,10 @@ int main(int argc, char **argv)
|
|||||||
args.repeat_interval = 1000000;
|
args.repeat_interval = 1000000;
|
||||||
args.repeat_counter = 0;
|
args.repeat_counter = 0;
|
||||||
|
|
||||||
|
setlocale (LC_ALL, "");
|
||||||
|
bindtextdomain(PACKAGE, LOCALEDIR);
|
||||||
|
textdomain(PACKAGE);
|
||||||
|
|
||||||
while ((c = getopt_long(argc, argv, "bkmghlotc:s:V", longopts, NULL)) != -1)
|
while ((c = getopt_long(argc, argv, "bkmghlotc:s:V", longopts, NULL)) != -1)
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'b':
|
case 'b':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user