All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] hardlink: set all locale elements, so that messages will get translated
@ 2022-03-11 16:23 Benno Schulenberg
  2022-03-11 16:23 ` [PATCH 2/2] hardlink: grammarize the main description in the man page Benno Schulenberg
  0 siblings, 1 reply; 3+ messages in thread
From: Benno Schulenberg @ 2022-03-11 16:23 UTC (permalink / raw)
  To: util-linux

This setting and binding were lost a year ago, in commit 2180ecc81b.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
---
 misc-utils/hardlink.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/misc-utils/hardlink.c b/misc-utils/hardlink.c
index 932048622..49515c10b 100644
--- a/misc-utils/hardlink.c
+++ b/misc-utils/hardlink.c
@@ -1329,8 +1329,9 @@ int main(int argc, char *argv[])
 	sigaction(SIGINT, &sa, NULL);
 	sigaction(SIGUSR1, &sa, NULL);
 
-	/* Pretty print numeric output */
-	setlocale(LC_NUMERIC, "");
+	setlocale(LC_ALL, "");
+	bindtextdomain(PACKAGE, LOCALEDIR);
+	textdomain(PACKAGE);
 
 	if (atexit(to_be_called_atexit) != 0)
 		err(EXIT_FAILURE, _("cannot register exit handler"));
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] hardlink: grammarize the main description in the man page
@ 2022-03-13  9:29 Benno Schulenberg
  0 siblings, 0 replies; 3+ messages in thread
From: Benno Schulenberg @ 2022-03-13  9:29 UTC (permalink / raw)
  To: util-linux


Benno Schulenberg wrote:
> (Also hard-wrap the extremely long line to resonable widths,

Let me fix that typo in a V2.

Benno


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-13  9:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-11 16:23 [PATCH 1/2] hardlink: set all locale elements, so that messages will get translated Benno Schulenberg
2022-03-11 16:23 ` [PATCH 2/2] hardlink: grammarize the main description in the man page Benno Schulenberg
2022-03-13  9:29 Benno Schulenberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.