locale: -m option should print character sets, only.

Required by mosh testsuite.
This commit is contained in:
Adrien Destugues 2017-04-08 08:45:29 +02:00
parent fbd8cde183
commit 2f6aa1c7cc
1 changed files with 3 additions and 1 deletions

View File

@ -107,9 +107,11 @@ main(int argc, char **argv)
print_formatting_conventions();
break;
case 'c': // for compatibility, we used to use 'c' for ctype
case 'm':
printf("%s.UTF-8\n", preferred_language().String());
break;
case 'm':
puts("UTF-8");
break;
case 't':
print_time_conventions();
break;