From: Philipp Stephani <p.stephani2@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>,
ohki@gssm.otsuka.tsukuba.ac.jp,
Daniel Colascione <dancol@dancol.org>,
John Wiegley <johnw@gnu.org>
Cc: 22815@debbugs.gnu.org
Subject: bug#22815: 25.0.91; emacs-module.*
Date: Tue, 29 Mar 2016 10:05:39 +0000 [thread overview]
Message-ID: <CAArVCkQJeuaGD-JohBEd16Zb-TYrY=RpJQrh7-OufR+pnCDH7g@mail.gmail.com> (raw)
In-Reply-To: <83h9gud0pl.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1450 bytes --]
Eli Zaretskii <eliz@gnu.org> 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.
[-- Attachment #2: Type: text/html, Size: 2389 bytes --]
prev parent reply other threads:[~2016-03-29 10:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-26 7:28 bug#22815: 25.0.91; emacs-module.* Atsuo Ohki
2016-02-26 9:10 ` Eli Zaretskii
2016-02-26 9:16 ` ohki
2016-02-26 9:46 ` Eli Zaretskii
2016-02-26 10:09 ` ohki
2016-02-26 18:26 ` Eli Zaretskii
2016-02-26 23:21 ` ohki
2016-02-27 8:19 ` Eli Zaretskii
2016-03-29 10:05 ` Philipp Stephani [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAArVCkQJeuaGD-JohBEd16Zb-TYrY=RpJQrh7-OufR+pnCDH7g@mail.gmail.com' \
--to=p.stephani2@gmail.com \
--cc=22815@debbugs.gnu.org \
--cc=dancol@dancol.org \
--cc=eliz@gnu.org \
--cc=johnw@gnu.org \
--cc=ohki@gssm.otsuka.tsukuba.ac.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.