From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#22815: 25.0.91; emacs-module.* Date: Tue, 29 Mar 2016 10:05:39 +0000 Message-ID: References: <83lh67et0e.fsf@gnu.org> <5098.1456478165@smr00> <83d1rjercx.fsf@gnu.org> <1298.1456481397@smr00> <83y4a7coqo.fsf@gnu.org> <4539.1456528899@smr00> <83h9gud0pl.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113fa3fe6cae06052f2d2c5c X-Trace: ger.gmane.org 1459246240 6700 80.91.229.3 (29 Mar 2016 10:10:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2016 10:10:40 +0000 (UTC) Cc: 22815@debbugs.gnu.org To: Eli Zaretskii , ohki@gssm.otsuka.tsukuba.ac.jp, Daniel Colascione , John Wiegley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 29 12:10:31 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1akqbV-0007YL-IY for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Mar 2016 12:10:29 +0200 Original-Received: from localhost ([::1]:45632 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akqbU-0001rx-Qh for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Mar 2016 06:10:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akqXG-0002YL-Hd for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 06:06:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akqXD-0001uA-93 for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 06:06:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45728) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akqXC-0001u0-KE for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 06:06:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1akqXC-0006uO-9w for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 06:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Mar 2016 10:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22815 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22815-submit@debbugs.gnu.org id=B22815.145924595626545 (code B ref 22815); Tue, 29 Mar 2016 10:06:02 +0000 Original-Received: (at 22815) by debbugs.gnu.org; 29 Mar 2016 10:05:56 +0000 Original-Received: from localhost ([127.0.0.1]:42855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akqX6-0006u5-Jx for submit@debbugs.gnu.org; Tue, 29 Mar 2016 06:05:56 -0400 Original-Received: from mail-lf0-f41.google.com ([209.85.215.41]:36559) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akqX4-0006ts-Pz for 22815@debbugs.gnu.org; Tue, 29 Mar 2016 06:05:55 -0400 Original-Received: by mail-lf0-f41.google.com with SMTP id e133so7831982lfe.3 for <22815@debbugs.gnu.org>; Tue, 29 Mar 2016 03:05:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JrMVjYbPpkhWtNaDnJ5jqIP8V028XcLhttjZnVrPEE8=; b=yANDipl76zTQfBSzRAH5afcN9+VL/wMXTQR/50dZjW//e/3t0JLEWzDjP9ZQ+HnQQm 4qXWZIHT1ddq3uE/swkqGjRn11dRm93DR/lperMsxyVWCpnIw+RO5favMmilrwkj5CB1 D1A6cy8eBva0h42R0IWRupUJku1LtP5eq9nw/QMYWNEqXjzGFRCkYTJvI4Ad4irvFatW lOJTTqhg14bDc8NfamCte6l4VXqRNBuixwn8s5rO9lY43W6Lzsvvadww55b16356t7aR pxuX3sbXYXROa6DC6p18ZQECmC6cG1U+ITlfkKhZCyGD/ZQSqUUzOgSSmAKA2/nsOYQ2 pE1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JrMVjYbPpkhWtNaDnJ5jqIP8V028XcLhttjZnVrPEE8=; b=LqEswKSowYytHxz2wC8qY1ikcmQwGaoUm8ZJtbcJXY90mYwCq1CkB7VT5twZf0wmv+ rLyHF7lYE7N02VJfYsuXKEri7lF0VS63npUSyj8vUGC7V2ELyIshA4OHxgo8cyISH7JK 6ZcQZiL+/xvuUKnP17VEB+jyDyPrqi0y2VSOLaljYlDHpXOeOG1ewtAVK/IfbsJpyV5J 3KEC3H4yad6lcIAPAO0E+u48P+G7IhnCoUJGZgIBLWWbBlPpOST5tul6lDFib5JGRjxf GpNrJsiiL5/9qx2N/Bb7FHppfu+xf56DfgeCKKJg8CscKDa9iou+343aC/curzlVzYq/ I1xg== X-Gm-Message-State: AD7BkJJenyuu/ySRZ6GYIPjp3cIi9wqw+exYpqTJ5dMMhGbwqrdeB6p7lGNeAqfUj4Rnn3XWKm/XiE05szZ50A== X-Received: by 10.25.137.67 with SMTP id l64mr620280lfd.158.1459245948904; Tue, 29 Mar 2016 03:05:48 -0700 (PDT) In-Reply-To: <83h9gud0pl.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115690 Archived-At: --001a113fa3fe6cae06052f2d2c5c Content-Type: text/plain; charset=UTF-8 Eli Zaretskii schrieb am Sa., 27. Feb. 2016 um 09:21 Uhr: > > From: ohki@gssm.otsuka.tsukuba.ac.jp > > Cc: ohki@gssm.otsuka.tsukuba.ac.jp, 22815@debbugs.gnu.org > > Date: Sat, 27 Feb 2016 08:21:39 +0900 > > > > Eli Zaretskii writes: > > > > From: ohki@gssm.otsuka.tsukuba.ac.jp > > > > Cc: ohki@gssm.otsuka.tsukuba.ac.jp, 22815@debbugs.gnu.org > > > > Date: Fri, 26 Feb 2016 19:09:57 +0900 > > > > > > > > > I was asking why couldn't the plug-in do the conversion, e.g., by > > > > > using libiconv? Emacs is not the only piece of software that knows > > > > > how to convert from one encoding to another. > > > > > > > > I considered using libiconv once, but Emacs has the conversion > > > > capability, so why not use it. > > > > > > Because it can signal an error, if the encoding you pass is not a > > > valid coding-system that Emacs recognizes? > > > > Yes it does! > > In the course of developing my plugin, > > I encountered `Invalid coding system' message, and Emacs keep working > > (no crash, no hangup). > > It's all too easy to get that, since Emacs coding-systems have names > that are rarely used elsewhere. And using libiconv is easy enough. > > So I'm uneasy about this. What do others think? > > > > I agree, this adds complexity without significant advantages. I'd recommend to add a wrapper for make-unibyte-string instead, then users can choose to use Emacs functions for decoding and encoding strings. --001a113fa3fe6cae06052f2d2c5c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Eli Za= retskii <eliz@gnu.org> schrieb am= Sa., 27. Feb. 2016 um 09:21=C2=A0Uhr:
> From: ohki@gssm.otsuka.tsukuba.ac.jp
> Cc: ohki@gssm.otsuka.tsukuba.ac.jp, 22815@debbugs.gnu.org
> Date: Sat, 27 Feb 2016 08:21:39 +0900
>
> Eli Zaretskii writes:
> > > From: ohki@gssm.otsuka.tsukuba.ac.jp
> > > Cc: ohki@gssm.otsuka.tsukuba.ac.jp, 22815@debbugs.gnu.org
> > > Date: Fri, 26 Feb 2016 19:09:57 +0900
> > >
> > > > I was asking why couldn't the plug-in do the conver= sion, e.g., by
> > > > using libiconv?=C2=A0 Emacs is not the only piece of so= ftware that knows
> > > > how to convert from one encoding to another.
> > >
> > >=C2=A0 I considered using libiconv once, but Emacs has the co= nversion
> > >=C2=A0 capability, so why not use it.
> >
> > Because it can signal an error, if the encoding you pass is not a=
> > valid coding-system that Emacs recognizes?
>
>=C2=A0 Yes it does!
>=C2=A0 In the course of developing my plugin,
>=C2=A0 I encountered `Invalid coding system' message,=C2=A0 and Ema= cs keep working
>=C2=A0 (no crash, no hangup).

It's all too easy to get that, since Emacs coding-systems have names that are rarely used elsewhere.=C2=A0 And using libiconv is easy enough.
So I'm uneasy about this.=C2=A0 What do others think?




I agree, this adds complexity without = significant advantages.
I'd recommend to add a wrapper for ma= ke-unibyte-string instead, then users can choose to use Emacs functions for= decoding and encoding strings.=C2=A0
--001a113fa3fe6cae06052f2d2c5c--