From unknown Fri Aug 15 12:42:05 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#4037 <4037@debbugs.gnu.org> To: bug#4037 <4037@debbugs.gnu.org> Subject: Status: Characters garbled in self-insert-command Reply-To: bug#4037 <4037@debbugs.gnu.org> Date: Fri, 15 Aug 2025 19:42:05 +0000 retitle 4037 Characters garbled in self-insert-command reassign 4037 emacs submitter 4037 Juri Linkov severity 4037 normal thanks From juri@jurta.org Tue Aug 4 12:28:33 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 4 Aug 2009 19:28:33 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.1 required=4.0 tests=AWL,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n74JSReB010080 for ; Tue, 4 Aug 2009 12:28:29 -0700 Received: from mx10.gnu.org ([199.232.76.166]:35335) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MYPgR-0005gX-8S for emacs-pretest-bug@gnu.org; Tue, 04 Aug 2009 15:28:27 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MYPgO-0004DW-PG for emacs-pretest-bug@gnu.org; Tue, 04 Aug 2009 15:28:26 -0400 Received: from smtp-out2.starman.ee ([85.253.0.4]:45960 helo=mx2.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYPgO-0004Co-BL for emacs-pretest-bug@gnu.org; Tue, 04 Aug 2009 15:28:24 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from mail.starman.ee (82.131.70.102.cable.starman.ee [82.131.70.102]) by mx2.starman.ee (Postfix) with ESMTP id 77F703F406F for ; Tue, 4 Aug 2009 22:28:16 +0300 (EEST) From: Juri Linkov To: emacs-pretest-bug@gnu.org Subject: Characters garbled in self-insert-command Organization: JURTA Date: Tue, 04 Aug 2009 22:27:42 +0300 Message-ID: <87ws5jh0ql.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) I just noticed a regression against Emacs 22. In GNU Emacs 23.1.50 (x86_64-pc-linux-gnu) typing C-u 5 C-x 8 ' a inserts into the current buffer =A8=A2\341\341\341=A8=A2 whereas in GNU Emacs 22.1.1 typing the same correctly inserts =A8=A2=A8=A2=A8=A2=A8=A2=A8=A2 The command `self-insert-command' in Emacs 23 inserts the first and the last characters without any modifications, but applies the following conversion for the remaining characters: /* Add the offset to the character, for Finsert_char. We pass internal_self_insert the unmodified character because it itself does this offsetting. */ if (! NILP (current_buffer->enable_multibyte_characters)) modified_char =3D unibyte_char_to_multibyte (modified_char); Commenting out the above 2 lines produces the correct result. However, I'm not sure what is the right fix. --=20 Juri Linkov http://www.jurta.org/emacs/ From rgm@gnu.org Tue Aug 25 18:16:28 2009 Received: (at control) by emacsbugs.donarmstrong.com; 26 Aug 2009 01:16:28 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.4 required=4.0 tests=AWL,ONEWORD autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7Q1GRmv015364 for ; Tue, 25 Aug 2009 18:16:28 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Mg77i-0001ZA-B6; Tue, 25 Aug 2009 21:16:26 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19092.36074.258388.516156@fencepost.gnu.org> Date: Tue, 25 Aug 2009 21:16:26 -0400 From: Glenn Morris To: control Subject: control close 4208 merge 4240 4037 severity 4258 wishlist severity 4257 minor reassign 4166 spam reassign 4167 spam reassign 4168 spam reassign 4171 spam reassign 4173 spam reassign 4174 spam reassign 4181 spam reassign 4182 spam reassign 4189 spam reassign 4205 spam reassign 4212 spam reassign 4213 spam reassign 4214 spam reassign 4220 spam reassign 4223 spam reassign 4224 spam reassign 4225 spam reassign 4232 spam reassign 4241 spam reassign 4245 spam reassign 4247 spam reassign 4248 spam From eliz@gnu.org Fri Aug 28 01:52:25 2009 Received: (at 4037-done) by emacsbugs.donarmstrong.com; 28 Aug 2009 08:52:25 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.5 required=4.0 tests=AWL,FVGT_m_MULTI_ODD,GMAIL, HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mtaout7.012.net.il (mtaout7.012.net.il [84.95.2.19]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7S8qNM3012023; Fri, 28 Aug 2009 01:52:25 -0700 Received: from conversion-daemon.i-mtaout7.012.net.il by i-mtaout7.012.net.il (HyperSendmail v2007.08) id <0KP200H00WK3N100@i-mtaout7.012.net.il>; Fri, 28 Aug 2009 11:52:17 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.228.144.38]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KP200C83WN4FT20@i-mtaout7.012.net.il>; Fri, 28 Aug 2009 11:52:17 +0300 (IDT) Date: Fri, 28 Aug 2009 11:52:21 +0300 From: Eli Zaretskii Subject: Re: bug#4240: 23.1.50; C-u doesn't work with Swedish characters In-reply-to: X-012-Sender: halo1@inter.net.il To: Kenichi Handa Cc: monnier@iro.umontreal.ca, 4240-done@debbugs.gnu.org, deniz.a.m.dogan@gmail.com, 4037-done@debbugs.gnu.org Reply-to: Eli Zaretskii Message-id: <83fxbccoca.fsf@gnu.org> References: <7b501d5c0908230628r5bc2cad2he3fc7a2249fcac5@mail.gmail.com> <87ljlas6nn.fsf@mail.jurta.org> <833a7ifen3.fsf@gnu.org> <83y6p6cxk7.fsf@gnu.org> > From: Kenichi Handa > Cc: eliz@gnu.org, 4240@emacsbugs.donarmstrong.com, deniz.a.m.dogan@gmail.com > Date: Thu, 27 Aug 2009 15:23:25 +0900 > > In article , Stefan Monnier writes: > > >>> > Please see bug#4037: > >>> > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4037 > >>> > I received no confirmation that my proposed fix is correct. > >>> I think those two lines are not necessary anymore and should be > >>> removed (together with the comments which explain their need). I > >>> think they belong to the old pre-unicode days when raw eight-bit > >>> characters needed such special treatment. > > > I believe you're right. Nowadays, the keyboard-decoding should always > > take place before we get to that point. > > Sorry for the late responce on this matter. Yes, that > unibyte->multibyte conversion is not necessary. I've just > installed a fix. Thanks. I'm closing the two related bug reports. From unknown Fri Aug 15 12:42:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 25 Sep 2009 14:24:20 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator