From unknown Fri Aug 15 20:57:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76244: Shepherd does not support UTF-8 in the log output Resent-From: Tomas Volf <~@wolfsden.cz> Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 12 Feb 2025 23:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 76244 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 76244@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173940402312319 (code B ref -1); Wed, 12 Feb 2025 23:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Feb 2025 23:47:03 +0000 Received: from localhost ([127.0.0.1]:38921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tiMRa-0003Cd-OM for submit@debbugs.gnu.org; Wed, 12 Feb 2025 18:47:03 -0500 Received: from lists.gnu.org ([2001:470:142::17]:55542) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1tiMRX-0003C4-Ua for submit@debbugs.gnu.org; Wed, 12 Feb 2025 18:47:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1tiMRS-0006oK-2D for bug-guix@gnu.org; Wed, 12 Feb 2025 18:46:54 -0500 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1tiMRP-0001ZD-OY for bug-guix@gnu.org; Wed, 12 Feb 2025 18:46:53 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id 8D3E235B550; Wed, 12 Feb 2025 23:46:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1739404009; bh=kKg2gsyOL00ZVqCcoGkFRju84i9HdKYovILnLAC/RsM=; h=From:To:Subject:Date; b=QJZ5enDEl04cqUtl8C3g9u59DzdQm3UKAalCH4x1UpcdQcCxxxvdYXf3BJ3rt3bP6 xEHp7G/u2ZZai011cdmwjre5MeNoMcRTUy8zPFWTpmMZsAJe+p7V9CdKU2+VE3HbOH +fPrBSEQg07Yk8oF+eUiKOJXACRihrlrn70Opr3tvZDWQKU+yLXsY0N7hQyNxf2IuE 5iclYBGxirKcFXtcbEfrdShSwK7/PjTc51hqilne+QUjroWzZBJl6wM98+201pyiV8 wxEyvleHBPmYs+0cl2KuKqLMXd/DXhWY+ju4N4rm2CuxtLJtbEToEenfTCC+pwX+Op dDYUIZ1WCSsWwxI5us68zb8MZnMxA8N6AVAazmn3m/2xQWBjqd7R78XvNtufoAQkHi 7oiTPqihaz0Y2a0n4SBndNMzSqEgl7CuZIQxUfk+LY6TAskElJqHmyV1uI2iNyd0L5 7I8kn/2hRwpcgXTvmmEkr4qlSza2qDSYL2enFgUPRVuZHmA5dG4afJ6XxgFOEnVk54 uXOitYc5Vt4w6Dbjb5RX6ETfxwhhDhKTXkWSh+kaC2Xtd44QJqjtQ6ekIuxyB3OL0m Fd9OBDfJrnCYVKxetK7pBMvsMk2v76HXAPVC5d+26NO5XBxVzMEKBq0a/YjN5rYrne ZkzjD4pK7Nuxc+eGZ+na5kIA= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 2F34635BE44 for ; Wed, 12 Feb 2025 23:46:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1739404009; bh=kKg2gsyOL00ZVqCcoGkFRju84i9HdKYovILnLAC/RsM=; h=From:To:Subject:Date; b=QJZ5enDEl04cqUtl8C3g9u59DzdQm3UKAalCH4x1UpcdQcCxxxvdYXf3BJ3rt3bP6 xEHp7G/u2ZZai011cdmwjre5MeNoMcRTUy8zPFWTpmMZsAJe+p7V9CdKU2+VE3HbOH +fPrBSEQg07Yk8oF+eUiKOJXACRihrlrn70Opr3tvZDWQKU+yLXsY0N7hQyNxf2IuE 5iclYBGxirKcFXtcbEfrdShSwK7/PjTc51hqilne+QUjroWzZBJl6wM98+201pyiV8 wxEyvleHBPmYs+0cl2KuKqLMXd/DXhWY+ju4N4rm2CuxtLJtbEToEenfTCC+pwX+Op dDYUIZ1WCSsWwxI5us68zb8MZnMxA8N6AVAazmn3m/2xQWBjqd7R78XvNtufoAQkHi 7oiTPqihaz0Y2a0n4SBndNMzSqEgl7CuZIQxUfk+LY6TAskElJqHmyV1uI2iNyd0L5 7I8kn/2hRwpcgXTvmmEkr4qlSza2qDSYL2enFgUPRVuZHmA5dG4afJ6XxgFOEnVk54 uXOitYc5Vt4w6Dbjb5RX6ETfxwhhDhKTXkWSh+kaC2Xtd44QJqjtQ6ekIuxyB3OL0m Fd9OBDfJrnCYVKxetK7pBMvsMk2v76HXAPVC5d+26NO5XBxVzMEKBq0a/YjN5rYrne ZkzjD4pK7Nuxc+eGZ+na5kIA= From: Tomas Volf <~@wolfsden.cz> Date: Thu, 13 Feb 2025 00:46:48 +0100 Message-ID: <87ikpeafpz.fsf@wolfsden.cz> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi :) Shepherd does not seem to support UTF-8 output (Japanese in my case) in the log output. I noticed the issue with timers, but can be reproduced with transient as well: --8<---------------cut here---------------start------------->8--- $ herd spawn transient -- $(which sh) -c 'echo "=E7=8C=AB"' Spawning transient service for ("/run/current-system/profile/bin/sh" "-c" "= echo \"???\""). Service user-homes has been started. Starting service transient-252... Service transient-252 started. Service transient-252 running with value #< id: 1314 command: ("/r= un/current-system/profile/bin/sh" "-c" "echo \"???\"")>. Service transient-252 has been started. $ tail -f /var/log/messages Feb 12 23:43:31 localhost shepherd[1]: Service user-homes has been started.= =20 Feb 12 23:43:31 localhost shepherd[1]: Service user-homes started.=20 Feb 12 23:43:31 localhost shepherd[1]: Service user-homes running with valu= e #t.=20 Feb 12 23:43:31 localhost shepherd[1]: Starting service transient-252...=20 Feb 12 23:43:31 localhost shepherd[1]: Service transient-252 started.=20 Feb 12 23:43:31 localhost shepherd[1]: Service transient-252 running with v= alue #< id: 1314 command: ("/run/current-system/profile/bin/sh" "-= c" "echo \"???\"")>.=20 Feb 12 23:43:31 localhost shepherd[1]: Service transient-252 has been start= ed.=20 Feb 12 23:43:31 localhost shepherd[1]: sh[1314] ???=20 Feb 12 23:43:31 localhost shepherd[1]: Service transient-252 has been disab= led.=20 Feb 12 23:43:31 localhost shepherd[1]: Transient service transient-252 term= inated, now unregistered.=20 --8<---------------cut here---------------end--------------->8--- Notice the `???' in output from both commands. Neither the `herd spawn' output nor the /var/log/message contain correct Japanese character. Have a nice day, Tomas --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. From unknown Fri Aug 15 20:57:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76244: Shepherd does not support UTF-8 in the log output Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 13 Feb 2025 09:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76244 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tomas Volf <~@wolfsden.cz> Cc: 76244@debbugs.gnu.org Received: via spool by 76244-submit@debbugs.gnu.org id=B76244.173944021025894 (code B ref 76244); Thu, 13 Feb 2025 09:51:02 +0000 Received: (at 76244) by debbugs.gnu.org; 13 Feb 2025 09:50:10 +0000 Received: from localhost ([127.0.0.1]:40549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tiVrF-0006jY-Pa for submit@debbugs.gnu.org; Thu, 13 Feb 2025 04:50:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58920) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tiVrC-0006iy-Uv for 76244@debbugs.gnu.org; Thu, 13 Feb 2025 04:50:07 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tiVr6-0003e4-Q6; Thu, 13 Feb 2025 04:50:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=AQDAVA2RAH84q7kA5Rviq92UmFsXnGXIjzL06R3g4q8=; b=Wd2WAsZ7gd4uU8G58HLm Lla+4OFHir/Xs12F05RUr7PgWR+SANW7UJF8I428NsRjWvcNVe46YiOt7jJxs65lcDFiPjAL7LEm0 NCurdgbK93qDDgZPOXG99AJr2yyWZNyKwO5vme/SPuyoX3HVU+b7cAEvxkA7xzLFKAaAXLqTrfMLT vFVovkb0VPPt5RWxdGED78GqTayz0Zm6JW56fKRbYwxyyIi/n8kvyUHQlgHn0DG1ooVDB2gqmvV1T qq6nfdaDRCYY1Inom7iJ/nUVSFF8oCXBN2rd39SCR5+vNnVW1AgIqGzcQ8+i2sr807nY5s49niC5F fTlodqOovYrSWw==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <87ikpeafpz.fsf@wolfsden.cz> (Tomas Volf's message of "Thu, 13 Feb 2025 00:46:48 +0100") References: <87ikpeafpz.fsf@wolfsden.cz> Date: Thu, 13 Feb 2025 10:49:29 +0100 Message-ID: <87y0ya2mza.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Tomas Volf <~@wolfsden.cz> skribis: > $ herd spawn transient -- $(which sh) -c 'echo "=E7=8C=AB"' > Spawning transient service for ("/run/current-system/profile/bin/sh" "-c"= "echo \"???\""). Actually, it=E2=80=99s not logging, it=E2=80=99s the command itself that=E2= =80=99s not interpreted as UTF-8: --8<---------------cut here---------------start------------->8--- $ cat /tmp/t.sh #!/bin/sh echo "=E7=8C=AB" $ sudo herd spawn transient /tmp/t.sh Spawning transient service for ("/tmp/t.sh"). Service user-homes has been started. Starting service transient-375... Service transient-375 started. Service transient-375 running with value #< id: 12840 command: ("/= tmp/t.sh")>. Service transient-375 has been started. $ sudo herd status root =E2=97=8F Status of root: It is running since Mon 10 Feb 2025 08:38:03 AM CET (3 days ago). Main PID: 1 Command: /gnu/store/n87px1cazqkav83npg80ccp1n777j08s-guile-3.0.9/bin/guil= e --no-auto-compile /gnu/store/ci2c9iwqaa1zpr38wc58419m9yh8g798-shepherd-1.= 0.99-git/bin/shepherd --config /gnu/store/6c9xhch8vqddwl81qj28d7c7k6zwr4ms-= shepherd.conf It is enabled. Provides: root shepherd Custom actions: help status halt power-off kexec load eval unload reload = daemonize restart Will not be respawned. Recent messages (use '-n' to view more or less): 2025-02-13 10:45:45 Service transient-375 running with value #< = id: 12840 command: ("/tmp/t.sh")>. 2025-02-13 10:45:45 Service transient-375 has been started. 2025-02-13 10:45:45 [t.sh] =E7=8C=AB 2025-02-13 10:45:45 Service transient-375 has been disabled. 2025-02-13 10:45:45 Transient service transient-375 terminated, now unreg= istered. --8<---------------cut here---------------end--------------->8--- Well there=E2=80=99s also a problem with logging after all: --8<---------------cut here---------------start------------->8--- $ sudo tail -4 /var/log/messages 2025-02-13 10:45:45 localhost shepherd[1]: Service transient-375 has been s= tarted. 2025-02-13 10:45:45 localhost shepherd[1]: [t.sh] ? 2025-02-13 10:45:45 localhost shepherd[1]: Service transient-375 has been d= isabled. 2025-02-13 10:45:45 localhost shepherd[1]: Transient service transient-375 = terminated, now unregistered. --8<---------------cut here---------------end--------------->8--- I=E2=80=99m surprised because I=E2=80=99m pretty sure there are tests for t= hat. I=E2=80=99ll check later. Ludo=E2=80=99. From unknown Fri Aug 15 20:57:10 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Tomas Volf <~@wolfsden.cz> Subject: bug#76244: closed (Re: bug#76244: Shepherd does not support UTF-8 in the log output) Message-ID: References: <877c5c3bsu.fsf@gnu.org> <87ikpeafpz.fsf@wolfsden.cz> X-Gnu-PR-Message: they-closed 76244 X-Gnu-PR-Package: guix Reply-To: 76244@debbugs.gnu.org Date: Wed, 26 Feb 2025 16:35:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1740587702-14654-1" This is a multi-part message in MIME format... ------------=_1740587702-14654-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #76244: Shepherd does not support UTF-8 in the log output which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 76244@debbugs.gnu.org. --=20 76244: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76244 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1740587702-14654-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 76244-done) by debbugs.gnu.org; 26 Feb 2025 16:34:19 +0000 Received: from localhost ([127.0.0.1]:55081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tnKMU-0003mf-S3 for submit@debbugs.gnu.org; Wed, 26 Feb 2025 11:34:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59180) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tnKMT-0003mK-B6 for 76244-done@debbugs.gnu.org; Wed, 26 Feb 2025 11:34:17 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tnKMN-0001WI-Ac; Wed, 26 Feb 2025 11:34:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=LetiU+hOobj2ULqXnDWhNhIlQ2iuk+nHjpGucuZKjGM=; b=SG2LwrlD40zCUHUW30z8 IH5OmW+NnXyqGgLy/TlUVmsnTBDYZDQajeE4ef1MmpnryhHkdS3vSWe3+sZzQ4anTxcg5PkRsGIRC pZejcdsM2j1CV8l+dm/VOyUQX6QbG6EbCqat00TxMJ3m6gtvNKzUwhs2vwUIwXGDbV0sFpm2rcTUA iq6r/G9IMiza7Sx5XSlfelMNg3G+3KV9/O1wqGxXk8Cte4AmzgD+joMmGTSHXf5J6yE2eSRqkCHBk HNyUQJg+KWDuS5Md+xqP478hzbRriHm9yBB3X5NquWCIZE8h9yRkF6AlaqcluxVCYXsL/tr87ZWjc BREDEC6JddsRQg==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Tomas Volf <~@wolfsden.cz> Subject: Re: bug#76244: Shepherd does not support UTF-8 in the log output In-Reply-To: <87y0ya2mza.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Thu, 13 Feb 2025 10:49:29 +0100") References: <87ikpeafpz.fsf@wolfsden.cz> <87y0ya2mza.fsf@gnu.org> Date: Wed, 26 Feb 2025 17:34:09 +0100 Message-ID: <877c5c3bsu.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76244-done Cc: 76244-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Fixed with dd193ad5b7af953c6e167bcfa002879e365e9a39 and 2b289dc34b0fd805e5aba7c964919620e8538ace. Ludo=E2=80=99. ------------=_1740587702-14654-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Feb 2025 23:47:03 +0000 Received: from localhost ([127.0.0.1]:38921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tiMRa-0003Cd-OM for submit@debbugs.gnu.org; Wed, 12 Feb 2025 18:47:03 -0500 Received: from lists.gnu.org ([2001:470:142::17]:55542) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1tiMRX-0003C4-Ua for submit@debbugs.gnu.org; Wed, 12 Feb 2025 18:47:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1tiMRS-0006oK-2D for bug-guix@gnu.org; Wed, 12 Feb 2025 18:46:54 -0500 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1tiMRP-0001ZD-OY for bug-guix@gnu.org; Wed, 12 Feb 2025 18:46:53 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id 8D3E235B550; Wed, 12 Feb 2025 23:46:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1739404009; bh=kKg2gsyOL00ZVqCcoGkFRju84i9HdKYovILnLAC/RsM=; h=From:To:Subject:Date; b=QJZ5enDEl04cqUtl8C3g9u59DzdQm3UKAalCH4x1UpcdQcCxxxvdYXf3BJ3rt3bP6 xEHp7G/u2ZZai011cdmwjre5MeNoMcRTUy8zPFWTpmMZsAJe+p7V9CdKU2+VE3HbOH +fPrBSEQg07Yk8oF+eUiKOJXACRihrlrn70Opr3tvZDWQKU+yLXsY0N7hQyNxf2IuE 5iclYBGxirKcFXtcbEfrdShSwK7/PjTc51hqilne+QUjroWzZBJl6wM98+201pyiV8 wxEyvleHBPmYs+0cl2KuKqLMXd/DXhWY+ju4N4rm2CuxtLJtbEToEenfTCC+pwX+Op dDYUIZ1WCSsWwxI5us68zb8MZnMxA8N6AVAazmn3m/2xQWBjqd7R78XvNtufoAQkHi 7oiTPqihaz0Y2a0n4SBndNMzSqEgl7CuZIQxUfk+LY6TAskElJqHmyV1uI2iNyd0L5 7I8kn/2hRwpcgXTvmmEkr4qlSza2qDSYL2enFgUPRVuZHmA5dG4afJ6XxgFOEnVk54 uXOitYc5Vt4w6Dbjb5RX6ETfxwhhDhKTXkWSh+kaC2Xtd44QJqjtQ6ekIuxyB3OL0m Fd9OBDfJrnCYVKxetK7pBMvsMk2v76HXAPVC5d+26NO5XBxVzMEKBq0a/YjN5rYrne ZkzjD4pK7Nuxc+eGZ+na5kIA= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 2F34635BE44 for ; Wed, 12 Feb 2025 23:46:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1739404009; bh=kKg2gsyOL00ZVqCcoGkFRju84i9HdKYovILnLAC/RsM=; h=From:To:Subject:Date; b=QJZ5enDEl04cqUtl8C3g9u59DzdQm3UKAalCH4x1UpcdQcCxxxvdYXf3BJ3rt3bP6 xEHp7G/u2ZZai011cdmwjre5MeNoMcRTUy8zPFWTpmMZsAJe+p7V9CdKU2+VE3HbOH +fPrBSEQg07Yk8oF+eUiKOJXACRihrlrn70Opr3tvZDWQKU+yLXsY0N7hQyNxf2IuE 5iclYBGxirKcFXtcbEfrdShSwK7/PjTc51hqilne+QUjroWzZBJl6wM98+201pyiV8 wxEyvleHBPmYs+0cl2KuKqLMXd/DXhWY+ju4N4rm2CuxtLJtbEToEenfTCC+pwX+Op dDYUIZ1WCSsWwxI5us68zb8MZnMxA8N6AVAazmn3m/2xQWBjqd7R78XvNtufoAQkHi 7oiTPqihaz0Y2a0n4SBndNMzSqEgl7CuZIQxUfk+LY6TAskElJqHmyV1uI2iNyd0L5 7I8kn/2hRwpcgXTvmmEkr4qlSza2qDSYL2enFgUPRVuZHmA5dG4afJ6XxgFOEnVk54 uXOitYc5Vt4w6Dbjb5RX6ETfxwhhDhKTXkWSh+kaC2Xtd44QJqjtQ6ekIuxyB3OL0m Fd9OBDfJrnCYVKxetK7pBMvsMk2v76HXAPVC5d+26NO5XBxVzMEKBq0a/YjN5rYrne ZkzjD4pK7Nuxc+eGZ+na5kIA= From: Tomas Volf <~@wolfsden.cz> To: bug-guix@gnu.org Subject: Shepherd does not support UTF-8 in the log output Date: Thu, 13 Feb 2025 00:46:48 +0100 Message-ID: <87ikpeafpz.fsf@wolfsden.cz> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi :) Shepherd does not seem to support UTF-8 output (Japanese in my case) in the log output. I noticed the issue with timers, but can be reproduced with transient as well: --8<---------------cut here---------------start------------->8--- $ herd spawn transient -- $(which sh) -c 'echo "=E7=8C=AB"' Spawning transient service for ("/run/current-system/profile/bin/sh" "-c" "= echo \"???\""). Service user-homes has been started. Starting service transient-252... Service transient-252 started. Service transient-252 running with value #< id: 1314 command: ("/r= un/current-system/profile/bin/sh" "-c" "echo \"???\"")>. Service transient-252 has been started. $ tail -f /var/log/messages Feb 12 23:43:31 localhost shepherd[1]: Service user-homes has been started.= =20 Feb 12 23:43:31 localhost shepherd[1]: Service user-homes started.=20 Feb 12 23:43:31 localhost shepherd[1]: Service user-homes running with valu= e #t.=20 Feb 12 23:43:31 localhost shepherd[1]: Starting service transient-252...=20 Feb 12 23:43:31 localhost shepherd[1]: Service transient-252 started.=20 Feb 12 23:43:31 localhost shepherd[1]: Service transient-252 running with v= alue #< id: 1314 command: ("/run/current-system/profile/bin/sh" "-= c" "echo \"???\"")>.=20 Feb 12 23:43:31 localhost shepherd[1]: Service transient-252 has been start= ed.=20 Feb 12 23:43:31 localhost shepherd[1]: sh[1314] ???=20 Feb 12 23:43:31 localhost shepherd[1]: Service transient-252 has been disab= led.=20 Feb 12 23:43:31 localhost shepherd[1]: Transient service transient-252 term= inated, now unregistered.=20 --8<---------------cut here---------------end--------------->8--- Notice the `???' in output from both commands. Neither the `herd spawn' output nor the /var/log/message contain correct Japanese character. Have a nice day, Tomas --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. ------------=_1740587702-14654-1--