From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 18 09:33:31 2011 Received: (at submit) by debbugs.gnu.org; 18 Mar 2011 13:33:31 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q0Zo1-0007pj-Rn for submit@debbugs.gnu.org; Fri, 18 Mar 2011 09:33:30 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q0Sg6-0005UL-Ef for submit@debbugs.gnu.org; Fri, 18 Mar 2011 01:56:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0Sg0-0005bb-9t for submit@debbugs.gnu.org; Fri, 18 Mar 2011 01:56:45 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_LOW,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:52612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0Sg0-0005bX-7Z for submit@debbugs.gnu.org; Fri, 18 Mar 2011 01:56:44 -0400 Received: from [140.186.70.92] (port=55138 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0Sfz-0007sx-35 for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2011 01:56:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0Sfy-0005bN-0T for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2011 01:56:42 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:44400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0Sfx-0005bI-T8 for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2011 01:56:41 -0400 Received: by iyf13 with SMTP id 13so4504335iyf.0 for ; Thu, 17 Mar 2011 22:56:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=fA6apqlMstxK5aif6r68lwXvWqZBArx6tGsM0nnCuRo=; b=TB9ZxUQsfK76DhaUzgFGBfAX0KTxiahSdkVhrLVDx4Q7r1hqCYKn6wszMYyvwa0ETQ iZNyCJkjXlKItjcWYMjhKr+s7QZn8KI7+kEyYMb0cb9vU5hIC1El/xLT6HPtMus5ArD2 E1kCZ4fhv0C8X3WmYoMGuZ9tzsj/HJr2JpxV4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ClUxgYlexapBWUDvV62Uw66waQvlNbcd/gdqZp7pCT44aiYYuU+gwvrk+wefNQKhmH MR2gqDp382KyThwkMVBVQRU+juAA/3L8rUhXlc63erhHZHQgpHRYBz9N/BvgB3ZV4X6d ahy3s17id7pIZ14q3QEpTTd+2tdIT/OyRqI4s= MIME-Version: 1.0 Received: by 10.43.70.2 with SMTP id ye2mr921967icb.345.1300427799814; Thu, 17 Mar 2011 22:56:39 -0700 (PDT) Received: by 10.42.195.77 with HTTP; Thu, 17 Mar 2011 22:56:39 -0700 (PDT) Date: Fri, 18 Mar 2011 13:56:39 +0800 Message-ID: Subject: sgml-xml-auto-coding-function() should respect the *-with-signature-* coding From: LIN Sumang To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=bcaec51ddad910615a049ebb71a2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 18 Mar 2011 09:33:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) --bcaec51ddad910615a049ebb71a2 Content-Type: text/plain; charset=ISO-8859-1 Hi, I am using Emacs 23.2.1. I think sgml-xml-auto-coding-function() should respect the *-with-signature-* coding. Consider the scenario below: 1. xml file with the signature \376\377 at beginning of the file and the first line is 2. edit this file and save it. sgml-xml-auto-coding-function will use the utf-16be to save the file. 3. open the file again, get messed. In this case sgml-xml-auto-coding-function() shouldn't change the coding and if it really need to change the coding, it should append the *-with-signature-* to the selected coding. sgml-html-meta-auto-coding-function() should have same problem. --bcaec51ddad910615a049ebb71a2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I am using Emacs 23.2.1. I think sgml-xml-auto-coding-function()= should respect the *-with-signature-* coding.

Consider the scenario= below:
1. xml file with the signature \376\377 at beginning of the file= and the first line is
<?xml version=3D"1.0" encoding=3D"utf-16be"?>
= 2. edit this file and save it. sgml-xml-auto-coding-function will use the u= tf-16be to save the file.
3. open the file again, get messed.

In = this case sgml-xml-auto-coding-function() shouldn't change the coding a= nd if it really need to change the coding, it should append the *-with-sign= ature-* to the selected coding.

sgml-html-meta-auto-coding-function() should have same problem.

=
--bcaec51ddad910615a049ebb71a2-- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 18 13:03:22 2011 Received: (at control) by debbugs.gnu.org; 18 Mar 2011 17:03:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q0d58-000428-Jt for submit@debbugs.gnu.org; Fri, 18 Mar 2011 13:03:22 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q0d57-00041g-0x for control@debbugs.gnu.org; Fri, 18 Mar 2011 13:03:21 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Q0d52-00082N-2a for control@debbugs.gnu.org; Fri, 18 Mar 2011 13:03:16 -0400 Date: Fri, 18 Mar 2011 13:03:16 -0400 Message-Id: Subject: control message for bug 8283 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) merge 8282 8283 From debbugs-submit-bounces@debbugs.gnu.org Sat May 18 03:26:24 2019 Received: (at control) by debbugs.gnu.org; 18 May 2019 07:26:25 +0000 Received: from localhost ([127.0.0.1]:59506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRtjc-0005Yr-Ji for submit@debbugs.gnu.org; Sat, 18 May 2019 03:26:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42231) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRtjb-0005Yb-3C; Sat, 18 May 2019 03:26:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42915) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRtjT-0001Vs-Qv; Sat, 18 May 2019 03:26:17 -0400 Received: from [176.228.60.248] (port=1700 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hRtjS-0007fS-R2; Sat, 18 May 2019 03:26:15 -0400 Date: Sat, 18 May 2019 10:26:09 +0300 Message-Id: <83ef4w9qb2.fsf@gnu.org> From: Eli Zaretskii To: npostavs@gmail.com In-reply-to: <85a7fldp15.fsf@gmail.com> (npostavs@gmail.com) Subject: Re: bug#35766: emacs saves utf-16 le xml files as utf-16 be References: <837eaqcl9g.fsf@gnu.org> <83lfz5bfed.fsf@gnu.org> <87a7fle1yp.fsf@gmail.com> <83tvdt9js7.fsf@gnu.org> <85a7fldp15.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control Cc: jszabo_98@hotmail.com, 35766@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 (---) merge 8282 35766 close 36766 thanks > From: npostavs@gmail.com > Cc: Noam Postavsky , jszabo_98@hotmail.com, 35766@debbugs.gnu.org > Date: Fri, 17 May 2019 12:27:50 -0400 > > Eli Zaretskii writes: > > > Perhaps we should by default produce encoding with BOM when XML header > > specifies UTF-16? > > I think yes, https://www.w3.org/TR/xml/#charencoding says > > Entities encoded in UTF-16 MUST [...] begin with the Byte Order Mark OK, I did that as well, and pushed the changes to master. > By the way, is Bug#8282 the same as this one, or just closely related? It's the same problem; merged the bugs. > It's talking about sgml-html-meta-auto-coding-function (though maybe > sgml-xml-auto-coding-function is more relevant). I'm getting a little > confused between all the different *-find/auto-coding-* functions. The function relevant for the recipe in bug#8282 is sgml-xml-auto-coding-function, which is where I made the changes. If the HTML and/or SGML specs also mandate that we use BOM, then maybe we need the same changes in sgml-html-meta-auto-coding-function as well. Note that there's no equivalent for xml-find-file-coding-system for non-XML files, so recognition of visited UTF-16 HTML files will not work even if they do have a BOM. > There is also nxml-set-auto-coding which seems to be mostly unused. It is supposed to be used by packages that build on top of nXml, AFAIU. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat May 18 03:44:25 2019 Received: (at control) by debbugs.gnu.org; 18 May 2019 07:44:25 +0000 Received: from localhost ([127.0.0.1]:59517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRu13-00085c-IX for submit@debbugs.gnu.org; Sat, 18 May 2019 03:44:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRu10-00085O-K7 for control@debbugs.gnu.org; Sat, 18 May 2019 03:44:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRu0v-00077e-FD for control@debbugs.gnu.org; Sat, 18 May 2019 03:44:17 -0400 Received: from [176.228.60.248] (port=2805 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hRu0u-00084m-3Q for control@debbugs.gnu.org; Sat, 18 May 2019 03:44:16 -0400 Date: Sat, 18 May 2019 10:44:10 +0300 Message-Id: <83d0kg9ph1.fsf@gnu.org> From: Eli Zaretskii To: control@debbugs.gnu.org Subject: Close 35766 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) 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: -3.3 (---) close 35766 thanks From debbugs-submit-bounces@debbugs.gnu.org Sat May 18 07:29:41 2019 Received: (at control) by debbugs.gnu.org; 18 May 2019 11:29:42 +0000 Received: from localhost ([127.0.0.1]:60028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRxX3-0007bX-N2 for submit@debbugs.gnu.org; Sat, 18 May 2019 07:29:41 -0400 Received: from mail-io1-f50.google.com ([209.85.166.50]:44917) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRxX1-0007bK-FN for control@debbugs.gnu.org; Sat, 18 May 2019 07:29:39 -0400 Received: by mail-io1-f50.google.com with SMTP id f22so7483743iol.11 for ; Sat, 18 May 2019 04:29:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=kuE16Gblw+x5ogjh+rDlj3sS44QwGRcJC498d0FMm4Y=; b=e9/H1mgTBkb4NbK1fm2aydFImAzZS1rtlS9TvnnV1kQYaVCUMgPFWKWi0ut0U67ipK ag2Nc0+YyqA1aB0LUNk1iBvmHdyQ76CT8zsj1h27hKw6Ax55Dn9573s7oYzhsoPMNFKD HMNKwiVTfzpfKPF3SK0L//ioXw6UAcZDH2TMOIom+IVfqrn/cHqPddfcpNpazXpjvpuj vrh+NV0neRwcaC5O7qhcWvs8RU0Zk0+HD4kByq+Tb/CLC93zF48r2VECiAk1Hi/bIhun qcsKK1zvGzM0RBR9kwBjWHncOSBRSLYNSkhWCegBRClLBItclvQNFk+N96HlDQ/xJaoQ uWKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=kuE16Gblw+x5ogjh+rDlj3sS44QwGRcJC498d0FMm4Y=; b=dVSIDk3/RfTI+pAqVytuIq+Ztf65ofLkaMU00b/J3bSXQPsc//u7I/lGOkNUlbxXoe a4XVvL8jq+YDhj88TFzpECnLtfIxG5HMe9fQhAXH1Zon/RUxfw1AFmdlNMf40PSZc4nP FRs5IlSK6qR7xhjemqBdpaNq1OaDZVeTPl+neVB7GKWvvLxjo6673/tsA5IK9xTY7A68 y4nPgatNG/nk/cdbYBFn8ryZ/j2utpl4T733QAg4tevpGsZIZlXyOeoUorNWjxNpc/ZT I6I11xh0NMYUe1NYfPA3L7a6DwM29l+njhtPeprMtn0wCV5nidA8IYM2sdp9HdDxyMGV SCdA== X-Gm-Message-State: APjAAAXtqz4yxByt6st8h5hW+ZhxuDVUc3GBTjXIS2lr0VrD9o7BoXDe VKOGwAeDNA3l/ksEgZpMLG8/HGl7 X-Google-Smtp-Source: APXvYqxhdhSjQVf+H+s8rMiJmPNBCVyNAOrZ5gyeeNpMhyDaBDie9cJj+UbkoV1ymH9q6fViKeftQQ== X-Received: by 2002:a6b:dd07:: with SMTP id f7mr35463201ioc.244.1558178973745; Sat, 18 May 2019 04:29:33 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id x11sm3712463ion.10.2019.05.18.04.29.32 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 18 May 2019 04:29:32 -0700 (PDT) From: Noam Postavsky To: control@debbugs.gnu.org Subject: control message for bug #35766 Date: Sat, 18 May 2019 07:29:31 -0400 Message-ID: <874l5sdmqs.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.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 (-) fixed 35766 27.1 quit From unknown Fri Aug 15 14:48:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 17 Jun 2019 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