From unknown Wed Jun 18 23:10:47 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#30505 <30505@debbugs.gnu.org> To: bug#30505 <30505@debbugs.gnu.org> Subject: Status: marionette/virtio-console issues lead to test failures Reply-To: bug#30505 <30505@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:10:47 +0000 retitle 30505 marionette/virtio-console issues lead to test failures reassign 30505 guix submitter 30505 ludo@gnu.org (Ludovic Court=C3=A8s) severity 30505 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 17 19:01:51 2018 Received: (at submit) by debbugs.gnu.org; 18 Feb 2018 00:01:52 +0000 Received: from localhost ([127.0.0.1]:48755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enCQP-00036F-TY for submit@debbugs.gnu.org; Sat, 17 Feb 2018 19:01:51 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57277) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enCQN-00035y-Tn for submit@debbugs.gnu.org; Sat, 17 Feb 2018 19:01:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enCQH-00044P-Av for submit@debbugs.gnu.org; Sat, 17 Feb 2018 19:01:42 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47661) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1enCQH-00044K-6I for submit@debbugs.gnu.org; Sat, 17 Feb 2018 19:01:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48242) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enCQF-00010g-9w for bug-guix@gnu.org; Sat, 17 Feb 2018 19:01:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enCQB-00042E-7v for bug-guix@gnu.org; Sat, 17 Feb 2018 19:01:39 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:39546) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1enCQA-000422-Tm for bug-guix@gnu.org; Sat, 17 Feb 2018 19:01:35 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 70600108A8 for ; Sun, 18 Feb 2018 01:01:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FgiCa4l58itz for ; Sun, 18 Feb 2018 01:01:31 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 9ACFF105E8 for ; Sun, 18 Feb 2018 01:01:31 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: bug-guix@gnu.org Subject: marionette/virtio-console issues lead to test failures X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 30 =?utf-8?Q?Pluvi=C3=B4se?= an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 18 Feb 2018 01:01:31 +0100 Message-ID: <87vaevi2sk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.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: -5.0 (-----) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, On core-updates (or is it master now?), =E2=80=9Cmake check-system TESTS=3D= basic=E2=80=9D fails with: --8<---------------cut here---------------start------------->8--- Test begin: test-name: "/run/current-system is a GC root" source-file: "/gnu/store/irm2375f5p7nzyqqllwjfaby3ywhi5wq-basic-builder" source-line: 2 source-form: (test-eq "/run/current-system is a GC root" (quote success!)= (marionette-eval (quote (begin (add-to-load-path "/gnu/store/pn333fnrdazad= mzvkbyzby8cfr176yrh-guix-0.14.0-8.bc880f9/share/guile/site/2.2") (use-modul= es (srfi srfi-34) (guix store)) (let ((system (readlink "/run/current-syste= m"))) (guard (c ((nix-protocol-error? c) (and (file-exists? system) (quote = success!)))) (with-store store (delete-paths store (list system)) #f))))) m= arionette)) Test end: result-kind: fail actual-value: #{\x1b;%G\x1b;%G\x1b;%G\x1b;%G\x1b;%G\x1b;%Gsuccess!}# expected-value: success! --8<---------------cut here---------------end--------------->8--- We see similar issues with other system tests. The =E2=80=9C\x1b;%G=E2=80=9D sequences correspond to the =E2=80=9Cselect U= TF-8=E2=80=9D console code (see console_codes(4)). We=E2=80=99re receiving this as if we were a conso= le, but in fact all we want is to exchange raw bytes between the host and the guest; we don=E2=80=99t want to be a full-fledged console. I thought that using virtserialport instead of virtio-console might help (see patch below), but the problem persists. I=E2=80=99m not sure if it=E2= =80=99s the kernel that decides to send these codes or what. Also unclear as to why this happens on =E2=80=98core-updates=E2=80=99 and not =E2=80=98master=E2= =80=99. What am I missing? Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable diff --git a/gnu/build/marionette.scm b/gnu/build/marionette.scm index 7554a710a..173a67cef 100644 --- a/gnu/build/marionette.scm +++ b/gnu/build/marionette.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright =C2=A9 2016, 2017 Ludovic Court=C3=A8s +;;; Copyright =C2=A9 2016, 2017, 2018 Ludovic Court=C3=A8s ;;; ;;; This file is part of GNU Guix. ;;; @@ -97,8 +97,11 @@ QEMU monitor and to the guest's backdoor REPL." "-monitor" (string-append "unix:" socket-directory "/monitor") "-chardev" (string-append "socket,id=3Drepl,path=3D" socket-dire= ctory "/repl") + + ;; See + ;; . "-device" "virtio-serial" - "-device" "virtconsole,chardev=3Drepl")) + "-device" "virtserialport,chardev=3Drepl,name=3Dorg.gnu.guix.por= t.0")) =20 (define (accept* port) (match (select (list port) '() (list port) timeout) diff --git a/gnu/tests.scm b/gnu/tests.scm index 3e4c3d4e3..31249f0be 100644 --- a/gnu/tests.scm +++ b/gnu/tests.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright =C2=A9 2016, 2017 Ludovic Court=C3=A8s +;;; Copyright =C2=A9 2016, 2017, 2018 Ludovic Court=C3=A8s ;;; Copyright =C2=A9 2017 Mathieu Othacehe ;;; Copyright =C2=A9 2017 Tobias Geerinckx-Rice ;;; @@ -69,7 +69,7 @@ marionette-configuration make-marionette-configuration marionette-configuration? (device marionette-configuration-device ;string - (default "/dev/hvc0")) + (default "/dev/virtio-ports/org.gnu.guix.port.0")) (imported-modules marionette-configuration-imported-modules (default '())) (requirements marionette-configuration-requirements ;list of symbols @@ -87,17 +87,10 @@ =20 (modules '((ice-9 match) (srfi srfi-9 gnu) - (guix build syscalls) (rnrs bytevectors))) (start - (with-imported-modules `((guix build syscalls) - ,@imported-modules) + (with-imported-modules imported-modules #~(lambda () - (define (clear-echo termios) - (set-field termios (termios-local-flags) - (logand (lognot (local-flags ECHO)) - (termios-local-flags termios)))) - (define (self-quoting? x) (letrec-syntax ((one-of (syntax-rules () ((_) #f) @@ -112,20 +105,7 @@ (dynamic-wind (const #t) (lambda () - (let* ((repl (open-file #$device "r+0")) - (termios (tcgetattr (fileno repl))) - (console (open-file "/dev/console" "r+0")= )) - ;; Don't echo input back. - (tcsetattr (fileno repl) (tcsetattr-action TCS= ANOW) - (clear-echo termios)) - - ;; Redirect output to the console. - (close-fdes 1) - (close-fdes 2) - (dup2 (fileno console) 1) - (dup2 (fileno console) 2) - (close-port console) - + (let ((repl (open-file #$device "r+0"))) (display 'ready repl) (let loop () (newline repl) diff --git a/gnu/tests/base.scm b/gnu/tests/base.scm index 1bc7a7027..64332000a 100644 --- a/gnu/tests/base.scm +++ b/gnu/tests/base.scm @@ -323,11 +323,6 @@ info --version") 'success! (marionette-eval '(begin ;; Make sure the (guix =E2=80=A6) modules = are found. - ;; - ;; XXX: Currently shepherd and marionette = run - ;; on Guile 2.0 whereas Guix is on 2.2. Y= et - ;; we should be able to load the 2.0 Scheme - ;; files since it's pure Scheme. (add-to-load-path #+(file-append guix "/share/guile/site/2.= 2")) =20 @@ -337,9 +332,12 @@ info --version") (guard (c ((nix-protocol-error? c) (and (file-exists? system) 'success!))) - (with-store store - (delete-paths store (list system)) - #f)))) + (parameterize ((current-build-output-p= ort + (open-file "/dev/conso= le" + "r+0"))) + (with-store store + (delete-paths store (list system)) + #f))))) marionette)) =20 ;; This symlink is currently unused, but better have it point to= the --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 18 05:48:42 2018 Received: (at 30505) by debbugs.gnu.org; 18 Feb 2018 10:48:42 +0000 Received: from localhost ([127.0.0.1]:48945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enMWQ-0004ge-Im for submit@debbugs.gnu.org; Sun, 18 Feb 2018 05:48:42 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:33936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enMWM-0004gS-Tg for 30505@debbugs.gnu.org; Sun, 18 Feb 2018 05:48:39 -0500 Received: from localhost (178.113.229.194.wireless.dyn.drei.com [178.113.229.194]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 4B7E4336009F; Sun, 18 Feb 2018 11:48:37 +0100 (CET) Date: Sun, 18 Feb 2018 11:48:33 +0100 From: Danny Milosavljevic To: ludo@gnu.org (Ludovic =?ISO-8859-1?Q?Court=E8s?=) Subject: Re: bug#30505: marionette/virtio-console issues lead to test failures Message-ID: <20180218114833.7d5e7848@scratchpost.org> In-Reply-To: <87vaevi2sk.fsf@gnu.org> References: <87vaevi2sk.fsf@gnu.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30505 Cc: 30505@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: -0.7 (/) Hi Ludo, On Sun, 18 Feb 2018 01:01:31 +0100 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > The =E2=80=9C\x1b;%G=E2=80=9D sequences correspond to the =E2=80=9Cselect= UTF-8=E2=80=9D console code > (see console_codes(4)). We=E2=80=99re receiving this as if we were a con= sole, > but in fact all we want is to exchange raw bytes between the host and > the guest; we don=E2=80=99t want to be a full-fledged console. A lot of the tests pass console=3D... and thus in fact have a real console. It might be that our new automatic console getty interferes. I doubt it - I checked agetty sources and it doesn't touch iutf8. Might still be worth a try to remove agetty from %base-services. check-system TESTS=3Dbasic works fine in master indeed ... > this happens on =E2=80=98core-updates=E2=80=99 and not =E2=80=98master=E2= =80=99. That's a good question. Anyway, I think these codes are emitted by unicode_start - so as a first step, sabotage the kbd package so that it can't use unicode_start. Does it work then? From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 19 10:54:49 2018 Received: (at 30505) by debbugs.gnu.org; 19 Feb 2018 15:54:49 +0000 Received: from localhost ([127.0.0.1]:51468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ennmD-0002ji-0P for submit@debbugs.gnu.org; Mon, 19 Feb 2018 10:54:49 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:57220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ennmB-0002jZ-Kn for 30505@debbugs.gnu.org; Mon, 19 Feb 2018 10:54:48 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id E514911852; Mon, 19 Feb 2018 16:54:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n6cWdGOhLqqp; Mon, 19 Feb 2018 16:54:45 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 2BED2167A; Mon, 19 Feb 2018 16:54:45 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Danny Milosavljevic Subject: Re: bug#30505: marionette/virtio-console issues lead to test failures References: <87vaevi2sk.fsf@gnu.org> <20180218114833.7d5e7848@scratchpost.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 1 =?utf-8?Q?Vent=C3=B4se?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 19 Feb 2018 16:54:44 +0100 In-Reply-To: <20180218114833.7d5e7848@scratchpost.org> (Danny Milosavljevic's message of "Sun, 18 Feb 2018 11:48:33 +0100") Message-ID: <87r2phezzv.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30505 Cc: 30505@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: 1.0 (+) Heya, Danny Milosavljevic skribis: > On Sun, 18 Feb 2018 01:01:31 +0100 > ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > >> The =E2=80=9C\x1b;%G=E2=80=9D sequences correspond to the =E2=80=9Cselec= t UTF-8=E2=80=9D console code >> (see console_codes(4)). We=E2=80=99re receiving this as if we were a co= nsole, >> but in fact all we want is to exchange raw bytes between the host and >> the guest; we don=E2=80=99t want to be a full-fledged console. > > A lot of the tests pass console=3D... and thus in fact have a real consol= e. > > It might be that our new automatic console getty interferes. > I doubt it - I checked agetty sources and it doesn't touch iutf8. > Might still be worth a try to remove agetty from %base-services. This isn=E2=80=99t the culprit. I hadn=E2=80=99t noticed this is now part of =E2=80=98%base-services=E2=80= =99. It would be nice if it were enabled on ARM only. Thoughts? >> this happens on =E2=80=98core-updates=E2=80=99 and not =E2=80=98master= =E2=80=99. > > That's a good question. > > Anyway, I think these codes are emitted by unicode_start - so > as a first step, sabotage the kbd package so that it can't > use unicode_start. Does it work then? Commenting out (display "\x1b%G" (fdes->outport fd)) in (gnu services base) appear to solve the problem. It seems that it used to affect just the terminal behind FD and now somehow broadcasts to all existing terminals? Anyway, I=E2=80=99m unsure this =E2=80=98display=E2=80=99 call was needed a= t all. It seems redundant with the =E2=80=98tcsetattr=E2=80=99 call below. So I think we= =E2=80=99ll just remove it. Thoughts? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 19 12:08:57 2018 Received: (at 30505) by debbugs.gnu.org; 19 Feb 2018 17:08:57 +0000 Received: from localhost ([127.0.0.1]:51518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enovx-0004Xx-35 for submit@debbugs.gnu.org; Mon, 19 Feb 2018 12:08:57 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:40286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enovv-0004Xp-7d for 30505@debbugs.gnu.org; Mon, 19 Feb 2018 12:08:55 -0500 Received: from localhost (178.113.229.194.wireless.dyn.drei.com [178.113.229.194]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 6717933607C2; Mon, 19 Feb 2018 18:08:53 +0100 (CET) Date: Mon, 19 Feb 2018 18:08:49 +0100 From: Danny Milosavljevic To: ludo@gnu.org (Ludovic =?ISO-8859-1?Q?Court=E8s?=) Subject: Re: bug#30505: marionette/virtio-console issues lead to test failures Message-ID: <20180219180849.3a509e80@scratchpost.org> In-Reply-To: <87r2phezzv.fsf@gnu.org> References: <87vaevi2sk.fsf@gnu.org> <20180218114833.7d5e7848@scratchpost.org> <87r2phezzv.fsf@gnu.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30505 Cc: 30505@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: -0.7 (/) Hi Ludo, >I hadn=E2=80=99t noticed this is now part of =E2=80=98%base-services=E2=80= =99. It would be nice if it were enabled on ARM only. Thoughts? Why? It's not ARM-specific and there are people using headless x86 servers posting on the mailing list :) It's only enabled when you specify a serial port as console on the Linux command line - that's not going to happen accidentially. And once Linux uses the console for its messages it's nice to also have a login process running in the end - otherwise it's kinda annoying having only a read-only line when you sit right in front of the machine. On Mon, 19 Feb 2018 16:54:44 +0100 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > Commenting out (display "\x1b%G" (fdes->outport fd)) in (gnu services > base) appear to solve the problem. It seems that it used to affect just > the terminal behind FD and now somehow broadcasts to all existing > terminals? It was a bad idea to do the "\x1b%G" in the first place. There's a Linux kernel command-line parameter "vt.default_utf8" which is set to true anyway. In that case the iflag IUTF8 is set automatically by Linux drivers/tty/vt/vt.c and the driver also does the same as "\x1b%G" does in that case. So what do these things in (gnu services base) accomplish? Sounds like they change nothing. Maybe that was only done in later Linux kernels? I checked 3.4.103, it did = that already. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 19 15:35:11 2018 Received: (at 30505) by debbugs.gnu.org; 19 Feb 2018 20:35:11 +0000 Received: from localhost ([127.0.0.1]:51703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ens9V-0001by-Iq for submit@debbugs.gnu.org; Mon, 19 Feb 2018 15:35:11 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:58572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ens9U-0001bq-0D for 30505@debbugs.gnu.org; Mon, 19 Feb 2018 15:35:08 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 8171F1185A; Mon, 19 Feb 2018 21:35:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XhISvrVmTPpL; Mon, 19 Feb 2018 21:35:06 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 409C9F263; Mon, 19 Feb 2018 21:35:06 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Danny Milosavljevic Subject: Re: bug#30505: marionette/virtio-console issues lead to test failures References: <87vaevi2sk.fsf@gnu.org> <20180218114833.7d5e7848@scratchpost.org> <87r2phezzv.fsf@gnu.org> <20180219180849.3a509e80@scratchpost.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 1 =?utf-8?Q?Vent=C3=B4se?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 19 Feb 2018 21:35:05 +0100 In-Reply-To: <20180219180849.3a509e80@scratchpost.org> (Danny Milosavljevic's message of "Mon, 19 Feb 2018 18:08:49 +0100") Message-ID: <87d110g1l2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30505 Cc: 30505@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: 1.0 (+) Hello, Danny Milosavljevic skribis: >>I hadn=E2=80=99t noticed this is now part of =E2=80=98%base-services=E2= =80=99. It would be nice > if it were enabled on ARM only. Thoughts? > > Why? It's not ARM-specific and there are people using headless x86 serve= rs > posting on the mailing list :) > > It's only enabled when you specify a serial port as console on the Linux > command line - that's not going to happen accidentially. > > And once Linux uses the console for its messages it's nice to also have a > login process running in the end - otherwise it's kinda annoying having > only a read-only line when you sit right in front of the machine. Oh OK, got it, that makes sense. :-) > On Mon, 19 Feb 2018 16:54:44 +0100 > ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > >> Commenting out (display "\x1b%G" (fdes->outport fd)) in (gnu services >> base) appear to solve the problem. It seems that it used to affect just >> the terminal behind FD and now somehow broadcasts to all existing >> terminals? > > It was a bad idea to do the "\x1b%G" in the first place. Because it=E2=80=99s redundant with IUTF8? > There's a Linux kernel command-line parameter "vt.default_utf8" which > is set to true anyway. In that case the iflag IUTF8 is set automatically > by Linux drivers/tty/vt/vt.c and the driver also does the same as "\x1b%G" > does in that case. > > So what do these things in (gnu services base) accomplish? Sounds like > they change nothing. > > Maybe that was only done in later Linux kernels? I checked 3.4.103, it di= d that > already. This =E2=80=98unicode-start=E2=80=99 procedure is essentially a port of the =E2=80=98unicode_start=E2=80=99 script from =E2=80=98kbd=E2=80=99. I suppo= se the justification is to make sure we=E2=80=99re using UTF-8 input regardless of what the kernel def= aults or command-line options are. Thoughts? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 19 16:53:34 2018 Received: (at 30505-done) by debbugs.gnu.org; 19 Feb 2018 21:53:34 +0000 Received: from localhost ([127.0.0.1]:51756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1entNO-0005Tn-CV for submit@debbugs.gnu.org; Mon, 19 Feb 2018 16:53:34 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:59080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1entNM-0005Tg-Ma for 30505-done@debbugs.gnu.org; Mon, 19 Feb 2018 16:53:32 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 18A9511760; Mon, 19 Feb 2018 22:53:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ozMpnU6Rzzuh; Mon, 19 Feb 2018 22:53:31 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 33B2C114D1; Mon, 19 Feb 2018 22:53:31 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Danny Milosavljevic Subject: Re: bug#30505: marionette/virtio-console issues lead to test failures References: <87vaevi2sk.fsf@gnu.org> <20180218114833.7d5e7848@scratchpost.org> <87r2phezzv.fsf@gnu.org> <20180219180849.3a509e80@scratchpost.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 1 =?utf-8?Q?Vent=C3=B4se?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 19 Feb 2018 22:53:30 +0100 In-Reply-To: <20180219180849.3a509e80@scratchpost.org> (Danny Milosavljevic's message of "Mon, 19 Feb 2018 18:08:49 +0100") Message-ID: <87y3jod4th.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30505-done Cc: 30505-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: 1.0 (+) Danny Milosavljevic skribis: > On Mon, 19 Feb 2018 16:54:44 +0100 > ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > >> Commenting out (display "\x1b%G" (fdes->outport fd)) in (gnu services >> base) appear to solve the problem. It seems that it used to affect just >> the terminal behind FD and now somehow broadcasts to all existing >> terminals? > > It was a bad idea to do the "\x1b%G" in the first place. Commit ce0a62f6c5c8ea486869360f654356777cdf918e gets rid of that. I=E2=80=99ve also pushed the switch to =E2=80=9CVMchannel=E2=80=9D as commit 27a2c9c3e071fdb380c2f4f389b7cf4008dc75f7. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 19 17:36:07 2018 Received: (at 30505) by debbugs.gnu.org; 19 Feb 2018 22:36:07 +0000 Received: from localhost ([127.0.0.1]:51778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enu2Z-0006Vb-J0 for submit@debbugs.gnu.org; Mon, 19 Feb 2018 17:36:07 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:38388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enu2X-0006VT-SD for 30505@debbugs.gnu.org; Mon, 19 Feb 2018 17:36:06 -0500 Received: from localhost (178.113.229.194.wireless.dyn.drei.com [178.113.229.194]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 48FE333606CB; Mon, 19 Feb 2018 23:36:04 +0100 (CET) Date: Mon, 19 Feb 2018 23:35:53 +0100 From: Danny Milosavljevic To: ludo@gnu.org (Ludovic =?ISO-8859-1?Q?Court=E8s?=) Subject: Re: bug#30505: marionette/virtio-console issues lead to test failures Message-ID: <20180219233553.31aeef1a@scratchpost.org> In-Reply-To: <87d110g1l2.fsf@gnu.org> References: <87vaevi2sk.fsf@gnu.org> <20180218114833.7d5e7848@scratchpost.org> <87r2phezzv.fsf@gnu.org> <20180219180849.3a509e80@scratchpost.org> <87d110g1l2.fsf@gnu.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30505 Cc: 30505@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: -0.7 (/) Hi Ludo, On Mon, 19 Feb 2018 21:35:05 +0100 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > > It was a bad idea to do the "\x1b%G" in the first place. =20 >=20 > Because it=E2=80=99s redundant with IUTF8? I meant because the Linux kernel does it already and it's better not to have random multi-byte racy writes onto the tty while the mingetty is starting up (and possibly buffering and pending half of another sequence= ). As far as I understand it's not redundant to do both. According to src/Linux/linux-4.12-rc2/drivers/tty/vt/vt.c, the 'G' controls the conversion utf-8->unicode that happens before the virtual terminal displays a corresponding character on the screen. On the other hand, the termios iutf8 is meant for the program running in th= e session. Say you have bash on vt1, then bash can check termios for the settings and = find out whether vt1 is UTF-8-capable (also has other settings like whether the terminal already supports line editing etc - old-school terminals were quite cool; a friend of mine salvaged a real one ^^). Note that drivers/tty/vt/vt.c only copies ONE way, from the 'G' flag to the termios (and that seldomly). Makes sense since the programs shouldn't have a say in what the terminal ca= n do :) So I'd say guix services fiddling with termios is ... weird and the 'G' sli= ghtly less weird. > This =E2=80=98unicode-start=E2=80=99 procedure is essentially a port of t= he > =E2=80=98unicode_start=E2=80=99 script from =E2=80=98kbd=E2=80=99. I sup= pose the justification is to > make sure we=E2=80=99re using UTF-8 input regardless of what the kernel d= efaults > or command-line options are. Yeah, but it's asking for trouble. I just checked Linux 2.6.32.1, it defaults to utf8 (IUTF8 in termios, and '= G'). I'd suggest to remove both. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 21 17:21:41 2018 Received: (at 30505) by debbugs.gnu.org; 21 Feb 2018 22:21:41 +0000 Received: from localhost ([127.0.0.1]:55017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eoclh-00061w-2y for submit@debbugs.gnu.org; Wed, 21 Feb 2018 17:21:41 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:43084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eocld-00061l-4q for 30505@debbugs.gnu.org; Wed, 21 Feb 2018 17:21:39 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 86644119A1; Wed, 21 Feb 2018 23:21:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g8_UGfBk95xv; Wed, 21 Feb 2018 23:21:35 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 3D236DC6C; Wed, 21 Feb 2018 23:21:35 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Danny Milosavljevic Subject: Starting console/terminal Unicode support References: <87vaevi2sk.fsf@gnu.org> <20180218114833.7d5e7848@scratchpost.org> <87r2phezzv.fsf@gnu.org> <20180219180849.3a509e80@scratchpost.org> <87d110g1l2.fsf@gnu.org> <20180219233553.31aeef1a@scratchpost.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 3 =?utf-8?Q?Vent=C3=B4se?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 21 Feb 2018 23:21:34 +0100 In-Reply-To: <20180219233553.31aeef1a@scratchpost.org> (Danny Milosavljevic's message of "Mon, 19 Feb 2018 23:35:53 +0100") Message-ID: <87bmgic7bl.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30505 Cc: 30505@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: 1.0 (+) Hi Danny, Danny Milosavljevic skribis: > On Mon, 19 Feb 2018 21:35:05 +0100 > ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > >> > It was a bad idea to do the "\x1b%G" in the first place.=20=20 >>=20 >> Because it=E2=80=99s redundant with IUTF8? > > I meant because the Linux kernel does it already and it's better not to > have random multi-byte racy writes onto the tty while the mingetty > is starting up (and possibly buffering and pending half of another sequen= ce). That =E2=80=98unicode-start=E2=80=99 code run when the =E2=80=98console-fon= t-ttyN=E2=80=99 service is started, right after =E2=80=98term-ttyN=E2=80=99 (mingetty) is up. You=E2= =80=99d hope mingetty is really up and running once =E2=80=98term-ttyN=E2=80=99 is up, no? > As far as I understand it's not redundant to do both. > > According to src/Linux/linux-4.12-rc2/drivers/tty/vt/vt.c, the 'G' contro= ls > the conversion utf-8->unicode that happens before the virtual terminal > displays a corresponding character on the screen. > > On the other hand, the termios iutf8 is meant for the program running in = the session. OK, I see. > Say you have bash on vt1, then bash can check termios for the settings an= d find > out whether vt1 is UTF-8-capable (also has other settings like whether the > terminal already supports line editing etc - old-school terminals were qu= ite > cool; a friend of mine salvaged a real one ^^). > > Note that drivers/tty/vt/vt.c only copies ONE way, from the 'G' flag to t= he > termios (and that seldomly). > Makes sense since the programs shouldn't have a say in what the terminal = can do :) > > So I'd say guix services fiddling with termios is ... weird and the 'G' s= lightly > less weird. [...] >> This =E2=80=98unicode-start=E2=80=99 procedure is essentially a port of = the >> =E2=80=98unicode_start=E2=80=99 script from =E2=80=98kbd=E2=80=99. I su= ppose the justification is to >> make sure we=E2=80=99re using UTF-8 input regardless of what the kernel = defaults >> or command-line options are. > > Yeah, but it's asking for trouble. > > I just checked Linux 2.6.32.1, it defaults to utf8 (IUTF8 in termios, and= 'G'). > > I'd suggest to remove both. When we=E2=80=99re using the defaults, I understand both are unnecessary. = In other cases (custom kernel build with different defaults, different kernel command-line settings, etc.), we=E2=80=99d just get it wrong with th= ings breaking down the path, no? Also, FWIW, systemd=E2=80=99s vconsole-setup.c does exactly that: https://github.com/systemd/systemd/blob/master/src/vconsole/vconsole-setu= p.c#L94 And again that corresponds to the =E2=80=98unicode_start=E2=80=99 script. Thoughts? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 21 18:01:14 2018 Received: (at 30505) by debbugs.gnu.org; 21 Feb 2018 23:01:14 +0000 Received: from localhost ([127.0.0.1]:55036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eodNy-0006zs-F9 for submit@debbugs.gnu.org; Wed, 21 Feb 2018 18:01:14 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:40616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eodNw-0006zj-D6 for 30505@debbugs.gnu.org; Wed, 21 Feb 2018 18:01:12 -0500 Received: from localhost (77.118.162.106.wireless.dyn.drei.com [77.118.162.106]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 962A133606DD; Thu, 22 Feb 2018 00:01:10 +0100 (CET) Date: Thu, 22 Feb 2018 00:01:05 +0100 From: Danny Milosavljevic To: ludo@gnu.org (Ludovic =?ISO-8859-1?Q?Court=E8s?=) Subject: Re: Starting console/terminal Unicode support Message-ID: <20180222000105.46d017ca@scratchpost.org> In-Reply-To: <87bmgic7bl.fsf_-_@gnu.org> References: <87vaevi2sk.fsf@gnu.org> <20180218114833.7d5e7848@scratchpost.org> <87r2phezzv.fsf@gnu.org> <20180219180849.3a509e80@scratchpost.org> <87d110g1l2.fsf@gnu.org> <20180219233553.31aeef1a@scratchpost.org> <87bmgic7bl.fsf_-_@gnu.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30505 Cc: 30505@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: -0.7 (/) Hi Ludo, On Wed, 21 Feb 2018 23:21:34 +0100 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > >> This =E2=80=98unicode-start=E2=80=99 procedure is essentially a port o= f the > >> =E2=80=98unicode_start=E2=80=99 script from =E2=80=98kbd=E2=80=99. I = suppose the justification is to > >> make sure we=E2=80=99re using UTF-8 input regardless of what the kerne= l defaults > >> or command-line options are. =20 Yeah, but the only way to have it not use utf-8 would be to explicitly pass "default_utf8=3D0" as a command-line parameter. I think at that point the user deserves what he personally asked for :P >In > other cases (custom kernel build with different defaults, different > kernel command-line settings, etc.), we=E2=80=99d just get it wrong with = things > breaking down the path, no? Yes, it would just default to ASCII. In the big scheme of things it's not = so bad. I just thought that if it causes trouble *and* it's not needed anymore, the simplest way is to just remove it. > Also, FWIW, systemd=E2=80=99s vconsole-setup.c does exactly that: >=20 > https://github.com/systemd/systemd/blob/master/src/vconsole/vconsole-se= tup.c#L94 Huh, I wonder why they do it. systemd is quite new. I understand that old= er stuff (like kbd) did it because they had to in the Linux 2.4 days - but this? We should ask them... Aha, they also have static int toggle_utf8_sysfs(bool utf8) { int r; r =3D write_string_file("/sys/module/vt/parameters/default_utf8", o= ne_zero(utf8), 0); if (r < 0) return log_warning_errno(r, "Failed to %s sysfs UTF-8 flag:= %m", enable_disable(utf8)); log_debug("Sysfs UTF-8 flag %sd", enable_disable(utf8)); return 0; } so we could in fact directly force the VT driver to do our bidding, or even check what's up before trying to write the 'G' (the latter sounds like a ha= ck hiding the actual problem, though). From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 23 16:41:27 2018 Received: (at 30505) by debbugs.gnu.org; 23 Feb 2018 21:41:27 +0000 Received: from localhost ([127.0.0.1]:58018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epL5q-0001rF-RY for submit@debbugs.gnu.org; Fri, 23 Feb 2018 16:41:27 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:58212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epL5n-0001r3-1U for 30505@debbugs.gnu.org; Fri, 23 Feb 2018 16:41:24 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id D5BFF11DEC; Fri, 23 Feb 2018 22:41:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EbLLxYB_Z63K; Fri, 23 Feb 2018 22:41:20 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 8D3B111D7E; Fri, 23 Feb 2018 22:41:20 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Danny Milosavljevic Subject: Re: Starting console/terminal Unicode support References: <87vaevi2sk.fsf@gnu.org> <20180218114833.7d5e7848@scratchpost.org> <87r2phezzv.fsf@gnu.org> <20180219180849.3a509e80@scratchpost.org> <87d110g1l2.fsf@gnu.org> <20180219233553.31aeef1a@scratchpost.org> <87bmgic7bl.fsf_-_@gnu.org> <20180222000105.46d017ca@scratchpost.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 =?utf-8?Q?Vent=C3=B4se?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 23 Feb 2018 22:41:19 +0100 In-Reply-To: <20180222000105.46d017ca@scratchpost.org> (Danny Milosavljevic's message of "Thu, 22 Feb 2018 00:01:05 +0100") Message-ID: <87lgfjbczk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30505 Cc: 30505@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: 1.0 (+) Hello! Danny Milosavljevic skribis: > On Wed, 21 Feb 2018 23:21:34 +0100 > ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > >> >> This =E2=80=98unicode-start=E2=80=99 procedure is essentially a port = of the >> >> =E2=80=98unicode_start=E2=80=99 script from =E2=80=98kbd=E2=80=99. I= suppose the justification is to >> >> make sure we=E2=80=99re using UTF-8 input regardless of what the kern= el defaults >> >> or command-line options are.=20=20 > > Yeah, but the only way to have it not use utf-8 would be to explicitly pa= ss > "default_utf8=3D0" as a command-line parameter. I think at that point the > user deserves what he personally asked for :P (He or she.) But yeah, that makes sense. >>In >> other cases (custom kernel build with different defaults, different >> kernel command-line settings, etc.), we=E2=80=99d just get it wrong with= things >> breaking down the path, no? > > Yes, it would just default to ASCII. In the big scheme of things it's no= t so bad. > > I just thought that if it causes trouble *and* it's not needed anymore, t= he > simplest way is to just remove it. Yeah. >> Also, FWIW, systemd=E2=80=99s vconsole-setup.c does exactly that: >>=20 >> https://github.com/systemd/systemd/blob/master/src/vconsole/vconsole-s= etup.c#L94 > > Huh, I wonder why they do it. systemd is quite new. I understand that o= lder stuff > (like kbd) did it because they had to in the Linux 2.4 days - but this? > > We should ask them... > > Aha, they also have > > static int toggle_utf8_sysfs(bool utf8) { > int r; > > r =3D write_string_file("/sys/module/vt/parameters/default_utf8",= one_zero(utf8), 0); > if (r < 0) > return log_warning_errno(r, "Failed to %s sysfs UTF-8 fla= g: %m", enable_disable(utf8)); > > log_debug("Sysfs UTF-8 flag %sd", enable_disable(utf8)); > return 0; > } > > so we could in fact directly force the VT driver to do our bidding, or ev= en > check what's up before trying to write the 'G' (the latter sounds like a = hack > hiding the actual problem, though). Yeah, we could simply write =E2=80=9C1=E2=80=9D to that file I guess. Let=E2=80=99s do that? Thanks for explaining, Ludo=E2=80=99. From unknown Wed Jun 18 23:10:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Sat, 24 Feb 2018 22:45:01 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 24 17:44:23 2018 Received: (at control) by debbugs.gnu.org; 24 Feb 2018 22:44:23 +0000 Received: from localhost ([127.0.0.1]:59152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epiYJ-00007N-9P for submit@debbugs.gnu.org; Sat, 24 Feb 2018 17:44:23 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:36748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epiYH-00007F-Ao for control@debbugs.gnu.org; Sat, 24 Feb 2018 17:44:21 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id CDD63107DB for ; Sat, 24 Feb 2018 23:44:20 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jlhC9Ij74uT7 for ; Sat, 24 Feb 2018 23:44:20 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 2E6C552C for ; Sat, 24 Feb 2018 23:44:20 +0100 (CET) Date: Sat, 24 Feb 2018 23:44:19 +0100 Message-Id: <87fu5q80u4.fsf@gnu.org> To: control@debbugs.gnu.org From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: control message for bug #30581 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: control 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: 1.0 (+) merge 30581 30505 From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 25 07:31:38 2018 Received: (at 30505) by debbugs.gnu.org; 25 Feb 2018 12:31:38 +0000 Received: from localhost ([127.0.0.1]:59504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epvSr-0006KD-Mg for submit@debbugs.gnu.org; Sun, 25 Feb 2018 07:31:37 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:34244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epvSq-0006IR-8T for 30505@debbugs.gnu.org; Sun, 25 Feb 2018 07:31:36 -0500 Received: from localhost (77.118.165.54.wireless.dyn.drei.com [77.118.165.54]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 0ED193360249; Sun, 25 Feb 2018 13:31:34 +0100 (CET) Date: Sun, 25 Feb 2018 13:31:31 +0100 From: Danny Milosavljevic To: ludo@gnu.org (Ludovic =?ISO-8859-1?Q?Court=E8s?=) Subject: Re: Starting console/terminal Unicode support Message-ID: <20180225133131.76260198@scratchpost.org> In-Reply-To: <87lgfjbczk.fsf@gnu.org> References: <87vaevi2sk.fsf@gnu.org> <20180218114833.7d5e7848@scratchpost.org> <87r2phezzv.fsf@gnu.org> <20180219180849.3a509e80@scratchpost.org> <87d110g1l2.fsf@gnu.org> <20180219233553.31aeef1a@scratchpost.org> <87bmgic7bl.fsf_-_@gnu.org> <20180222000105.46d017ca@scratchpost.org> <87lgfjbczk.fsf@gnu.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30505 Cc: 30505@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: -0.7 (/) Hi Ludo, On Fri, 23 Feb 2018 22:41:19 +0100 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > Yeah, we could simply write =E2=80=9C1=E2=80=9D to that file I guess. >=20 > Let=E2=80=99s do that? I've thought about it and since non-UTF8 terminal probably only can be foun= d in museums (famous last words), yeah, let's do that. Usually I'm not a fan of overriding user settings (in this case the kernel command line) but in this case it's OK since the rest of the system at least can be sure that we have UTF-8 VTs. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 25 07:57:12 2018 Received: (at 30505) by debbugs.gnu.org; 25 Feb 2018 12:57:12 +0000 Received: from localhost ([127.0.0.1]:59508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epvrb-0007F9-Sg for submit@debbugs.gnu.org; Sun, 25 Feb 2018 07:57:12 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:36216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epvrZ-0007F1-Ud for 30505@debbugs.gnu.org; Sun, 25 Feb 2018 07:57:10 -0500 Received: from localhost (77.118.165.54.wireless.dyn.drei.com [77.118.165.54]) by dd26836.kasserver.com (Postfix) with ESMTPSA id AA33D3360249; Sun, 25 Feb 2018 13:57:08 +0100 (CET) Date: Sun, 25 Feb 2018 13:57:04 +0100 From: Danny Milosavljevic To: ludo@gnu.org (Ludovic =?ISO-8859-1?Q?Court=E8s?=) Subject: Re: bug#30505: Starting console/terminal Unicode support Message-ID: <20180225135704.3c437152@scratchpost.org> In-Reply-To: <20180225133131.76260198@scratchpost.org> References: <87vaevi2sk.fsf@gnu.org> <20180218114833.7d5e7848@scratchpost.org> <87r2phezzv.fsf@gnu.org> <20180219180849.3a509e80@scratchpost.org> <87d110g1l2.fsf@gnu.org> <20180219233553.31aeef1a@scratchpost.org> <87bmgic7bl.fsf_-_@gnu.org> <20180222000105.46d017ca@scratchpost.org> <87lgfjbczk.fsf@gnu.org> <20180225133131.76260198@scratchpost.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30505 Cc: 30505@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: -0.7 (/) > Usually I'm not a fan of overriding user settings (in this case the kernel > command line) but in this case it's OK since the rest of the system at least > can be sure that we have UTF-8 VTs. Aha, the gnu/services/base.scm tries to make sure that an UTF-8 aware unicode font is already loaded before switching the tty to UTF-8. We would have to set default_utf8 earlier (before even the vt is activated), otherwise the setting wouldn't be copied to the new terminal. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 26 12:09:58 2018 Received: (at 30505) by debbugs.gnu.org; 26 Feb 2018 17:09:58 +0000 Received: from localhost ([127.0.0.1]:33764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqMHm-0005nk-33 for submit@debbugs.gnu.org; Mon, 26 Feb 2018 12:09:58 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:46648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqMHk-0005nb-A4 for 30505@debbugs.gnu.org; Mon, 26 Feb 2018 12:09:56 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 174DE119AC; Mon, 26 Feb 2018 18:09:55 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8diaaf5k-U6q; Mon, 26 Feb 2018 18:09:54 +0100 (CET) Received: from ribbon (unknown [193.50.110.216]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 590C111823; Mon, 26 Feb 2018 18:09:54 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Danny Milosavljevic Subject: Re: bug#30505: Starting console/terminal Unicode support References: <87vaevi2sk.fsf@gnu.org> <20180218114833.7d5e7848@scratchpost.org> <87r2phezzv.fsf@gnu.org> <20180219180849.3a509e80@scratchpost.org> <87d110g1l2.fsf@gnu.org> <20180219233553.31aeef1a@scratchpost.org> <87bmgic7bl.fsf_-_@gnu.org> <20180222000105.46d017ca@scratchpost.org> <87lgfjbczk.fsf@gnu.org> <20180225133131.76260198@scratchpost.org> <20180225135704.3c437152@scratchpost.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 =?utf-8?Q?Vent=C3=B4se?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 26 Feb 2018 18:09:53 +0100 In-Reply-To: <20180225135704.3c437152@scratchpost.org> (Danny Milosavljevic's message of "Sun, 25 Feb 2018 13:57:04 +0100") Message-ID: <87sh9nvfry.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30505 Cc: 30505@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: 1.0 (+) Hey, Danny Milosavljevic skribis: >> Usually I'm not a fan of overriding user settings (in this case the kern= el >> command line) but in this case it's OK since the rest of the system at l= east >> can be sure that we have UTF-8 VTs. > > Aha, the gnu/services/base.scm tries to make sure that an UTF-8 aware uni= code > font is already loaded before switching the tty to UTF-8. We would have = to > set default_utf8 earlier (before even the vt is activated), otherwise the > setting wouldn't be copied to the new terminal. You=E2=80=99re talking about %default-console-font? What does that change? I=E2=80=99m lost. :-) We have the following options: 1. status quo, i.e., tcsetattr without %G in the =E2=80=98term-ttyN=E2=80= =99 services; 2. remove the tcsetattr call, write =E2=80=9C1=E2=80=9D to /sys/module/vt/parameters/default_utf8; 3. do nothing (no tcsetattr, no /sys, no %G). It seems that systemd does everything: %G, tcsetattr, and /sys. What do we do now? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 26 17:23:10 2018 Received: (at 30505) by debbugs.gnu.org; 26 Feb 2018 22:23:10 +0000 Received: from localhost ([127.0.0.1]:34061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqRAs-00005i-64 for submit@debbugs.gnu.org; Mon, 26 Feb 2018 17:23:10 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:47202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqRAq-00005a-7z for 30505@debbugs.gnu.org; Mon, 26 Feb 2018 17:23:08 -0500 Received: from localhost (77.118.239.24.wireless.dyn.drei.com [77.118.239.24]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 825583360302; Mon, 26 Feb 2018 23:23:06 +0100 (CET) Date: Mon, 26 Feb 2018 23:23:02 +0100 From: Danny Milosavljevic To: ludo@gnu.org (Ludovic =?ISO-8859-1?Q?Court=E8s?=) Subject: Re: bug#30505: Starting console/terminal Unicode support Message-ID: <20180226232302.08c60250@scratchpost.org> In-Reply-To: <87sh9nvfry.fsf@gnu.org> References: <87vaevi2sk.fsf@gnu.org> <20180218114833.7d5e7848@scratchpost.org> <87r2phezzv.fsf@gnu.org> <20180219180849.3a509e80@scratchpost.org> <87d110g1l2.fsf@gnu.org> <20180219233553.31aeef1a@scratchpost.org> <87bmgic7bl.fsf_-_@gnu.org> <20180222000105.46d017ca@scratchpost.org> <87lgfjbczk.fsf@gnu.org> <20180225133131.76260198@scratchpost.org> <20180225135704.3c437152@scratchpost.org> <87sh9nvfry.fsf@gnu.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30505 Cc: 30505@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: -0.7 (/) Hi Ludo, On Mon, 26 Feb 2018 18:09:53 +0100 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > 1. status quo, i.e., tcsetattr without %G in the =E2=80=98term-ttyN=E2= =80=99 services; >=20 > 2. remove the tcsetattr call, write =E2=80=9C1=E2=80=9D to > /sys/module/vt/parameters/default_utf8; >=20 > 3. do nothing (no tcsetattr, no /sys, no %G). >=20 > It seems that systemd does everything: %G, tcsetattr, and /sys. We have the following options as a distribution: (a) Hope that the user sets up everything as he should - iff they set up=20 the kernel as non-utf8, they also must set up an non-utf-8 console font. (b) Force their hand by decreeing that GuixSD is utf-8 only. That's what we are doing now I think - and a lot of projects (GNOME etc) assume UTF-8 nowadays anyway. Since we just want to fix the bug and leave everything else as it is (b), I'd vote for your (2.). (2.) needs to be done early before the VTs are actually there. default_utf8 is a default, and it will be read only when defaulting, so in this case it will be read when Linux is constructing a tty. %base-services contain both console-font-service and mingetty-service which both access the ttys. Linux VTs are created on demand. Once the VTs are created, us setting default_utf8 is too late. We should set default_utf8 before anyone touches tty[123456]. Where will that be? Should we just set it in boot-system ? That's probably a nice way - also since I think this setting is quite Linux-specific. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 27 04:25:40 2018 Received: (at 30505) by debbugs.gnu.org; 27 Feb 2018 09:25:40 +0000 Received: from localhost ([127.0.0.1]:34297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqbW0-0000UH-GW for submit@debbugs.gnu.org; Tue, 27 Feb 2018 04:25:40 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:50688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqbVy-0000UA-Rz for 30505@debbugs.gnu.org; Tue, 27 Feb 2018 04:25:39 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 4F13E1069E; Tue, 27 Feb 2018 10:25:38 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7UK3N_KErqaK; Tue, 27 Feb 2018 10:25:37 +0100 (CET) Received: from ribbon (unknown [193.50.110.216]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 39C8F7076; Tue, 27 Feb 2018 10:25:37 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Danny Milosavljevic Subject: Re: bug#30505: Starting console/terminal Unicode support References: <87vaevi2sk.fsf@gnu.org> <20180218114833.7d5e7848@scratchpost.org> <87r2phezzv.fsf@gnu.org> <20180219180849.3a509e80@scratchpost.org> <87d110g1l2.fsf@gnu.org> <20180219233553.31aeef1a@scratchpost.org> <87bmgic7bl.fsf_-_@gnu.org> <20180222000105.46d017ca@scratchpost.org> <87lgfjbczk.fsf@gnu.org> <20180225133131.76260198@scratchpost.org> <20180225135704.3c437152@scratchpost.org> <87sh9nvfry.fsf@gnu.org> <20180226232302.08c60250@scratchpost.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 9 =?utf-8?Q?Vent=C3=B4se?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 27 Feb 2018 10:25:36 +0100 In-Reply-To: <20180226232302.08c60250@scratchpost.org> (Danny Milosavljevic's message of "Mon, 26 Feb 2018 23:23:02 +0100") Message-ID: <87a7vu6ay7.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30505 Cc: 30505@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: 1.0 (+) Hi, Danny Milosavljevic skribis: > On Mon, 26 Feb 2018 18:09:53 +0100 > ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > >> 1. status quo, i.e., tcsetattr without %G in the =E2=80=98term-ttyN=E2= =80=99 services; >>=20 >> 2. remove the tcsetattr call, write =E2=80=9C1=E2=80=9D to >> /sys/module/vt/parameters/default_utf8; >>=20 >> 3. do nothing (no tcsetattr, no /sys, no %G). >>=20 >> It seems that systemd does everything: %G, tcsetattr, and /sys. > > We have the following options as a distribution: > > (a) Hope that the user sets up everything as he should - iff they set up= =20 > the kernel as non-utf8, they also must set up an non-utf-8 console font. > (b) Force their hand by decreeing that GuixSD is utf-8 only. That's what > we are doing now I think - and a lot of projects (GNOME etc) assume UTF-8 > nowadays anyway. > > Since we just want to fix the bug and leave everything else as it is (b), > I'd vote for your (2.). > > (2.) needs to be done early before the VTs are actually there. OK, makes sense, I agree. > default_utf8 is a default, and it will be read only when defaulting, so > in this case it will be read when Linux is constructing a tty. > > %base-services contain both console-font-service and mingetty-service whi= ch > both access the ttys. Linux VTs are created on demand. > > Once the VTs are created, us setting default_utf8 is too late. > > We should set default_utf8 before anyone touches tty[123456]. > > Where will that be? > > Should we just set it in boot-system ? That's probably a nice way - > also since I think this setting is quite Linux-specific. Alternately we could introduce a =E2=80=98virtual-terminal=E2=80=99 service= that every =E2=80=98term-*=E2=80=99 service would depend on. That =E2=80=98virtual-te= rminal=E2=80=99 service would simply write =E2=80=9C1=E2=80=9D to /sys/=E2=80=A6/default_utf8. How does that sound? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 15 06:41:10 2018 Received: (at 30505-done) by debbugs.gnu.org; 15 Mar 2018 10:41:10 +0000 Received: from localhost ([127.0.0.1]:34077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewQJp-0008El-Sk for submit@debbugs.gnu.org; Thu, 15 Mar 2018 06:41:10 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:53956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewQJo-0008Ed-4q for 30505-done@debbugs.gnu.org; Thu, 15 Mar 2018 06:41:08 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 1124312BF4; Thu, 15 Mar 2018 11:41:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2YTCLuZWH5jw; Thu, 15 Mar 2018 11:41:06 +0100 (CET) Received: from ribbon (vpn-0-27.aquilenet.fr [IPv6:2a0c:e300:4:27::]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 0801912A10; Thu, 15 Mar 2018 11:41:05 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Danny Milosavljevic Subject: Re: bug#30505: Starting console/terminal Unicode support References: <87vaevi2sk.fsf@gnu.org> <20180218114833.7d5e7848@scratchpost.org> <87r2phezzv.fsf@gnu.org> <20180219180849.3a509e80@scratchpost.org> <87d110g1l2.fsf@gnu.org> <20180219233553.31aeef1a@scratchpost.org> <87bmgic7bl.fsf_-_@gnu.org> <20180222000105.46d017ca@scratchpost.org> <87lgfjbczk.fsf@gnu.org> <20180225133131.76260198@scratchpost.org> <20180225135704.3c437152@scratchpost.org> <87sh9nvfry.fsf@gnu.org> <20180226232302.08c60250@scratchpost.org> <87a7vu6ay7.fsf@gnu.org> Date: Thu, 15 Mar 2018 11:41:05 +0100 In-Reply-To: <87a7vu6ay7.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 27 Feb 2018 10:25:36 +0100") Message-ID: <87tvthvcxq.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30505-done Cc: 30505-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: 1.0 (+) Hello! ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > Danny Milosavljevic skribis: [...] >> default_utf8 is a default, and it will be read only when defaulting, so >> in this case it will be read when Linux is constructing a tty. >> >> %base-services contain both console-font-service and mingetty-service wh= ich >> both access the ttys. Linux VTs are created on demand. >> >> Once the VTs are created, us setting default_utf8 is too late. >> >> We should set default_utf8 before anyone touches tty[123456]. >> >> Where will that be? >> >> Should we just set it in boot-system ? That's probably a nice way - >> also since I think this setting is quite Linux-specific. > > Alternately we could introduce a =E2=80=98virtual-terminal=E2=80=99 servi= ce that every > =E2=80=98term-*=E2=80=99 service would depend on. That =E2=80=98virtual-= terminal=E2=80=99 service would > simply write =E2=80=9C1=E2=80=9D to /sys/=E2=80=A6/default_utf8. Done in bb3062ad6290223ea24144ca8aa1f4cddac8f9be. Thanks! Ludo=E2=80=99. From unknown Wed Jun 18 23:10:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 12 Apr 2018 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator