Add newline to locale command line output. (that's more usual and it works for

all other CLI apps).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43032 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adrien Destugues
2011-10-31 13:32:22 +00:00
parent c2f3ee3b7b
commit ee46c038a6
+3 -3
View File
@@ -42,7 +42,7 @@ print_formatting_conventions()
{ {
BFormattingConventions conventions; BFormattingConventions conventions;
BLocale::Default()->GetFormattingConventions(&conventions); BLocale::Default()->GetFormattingConventions(&conventions);
printf("%s_%s.UTF-8", conventions.LanguageCode(), conventions.CountryCode()); printf("%s_%s.UTF-8\n", conventions.LanguageCode(), conventions.CountryCode());
} }
@@ -75,10 +75,10 @@ main(int argc, char **argv)
while ((c = getopt_long(argc, argv, "lcfh", longopts, NULL)) != -1) { while ((c = getopt_long(argc, argv, "lcfh", longopts, NULL)) != -1) {
switch (c) { switch (c) {
case 'l': case 'l':
printf("%s", preferred_language()); printf("%s\n", preferred_language());
break; break;
case 'c': case 'c':
printf("%s.UTF-8", preferred_language()); printf("%s.UTF-8\n", preferred_language());
break; break;
case 'f': case 'f':
print_formatting_conventions(); print_formatting_conventions();