From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Teddy Hogeborn <teddy@recompile.se>
Cc: 20704@debbugs.gnu.org
Subject: bug#20704: info.el bug fix; Interprets Info format wrongly
Date: Mon, 01 Jun 2015 10:01:59 -0400 [thread overview]
Message-ID: <jwvpp5f5y59.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <87d21gpzle.fsf@tower.recompile.se> (Teddy Hogeborn's message of "Sun, 31 May 2015 16:54:05 +0200")
Thanks,
> + (+ (point-min) (byte-to-position
> + (read (current-buffer))))
Hmm... this only works if the Info file is encoded in UTF-8.
I guess in the case of Info, 99% of the files are just ASCII and there's
a chance that the vast majority of the rest is (or will be) UTF-8,
so maybe this hack works well in practice.
But I think we should define an `Info-bytepos-to-charpos' function for that.
It can be defined as an alias for byte-to-position, but at least it
concentrates this utf-8 assumption at a single place where we can place
a clear comment.
Stefan
next prev parent reply other threads:[~2015-06-01 14:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-31 14:54 bug#20704: info.el bug fix; Interprets Info format wrongly Teddy Hogeborn
2015-06-01 14:01 ` Stefan Monnier [this message]
2015-06-01 15:12 ` Eli Zaretskii
2015-06-09 11:09 ` Teddy Hogeborn
2015-06-09 14:29 ` Eli Zaretskii
2015-06-09 16:01 ` Stefan Monnier
2015-06-10 17:50 ` Stefan Monnier
2015-06-10 18:21 ` Eli Zaretskii
2015-06-11 3:02 ` Stefan Monnier
2015-06-11 13:11 ` Eli Zaretskii
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=jwvpp5f5y59.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=20704@debbugs.gnu.org \
--cc=teddy@recompile.se \
/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.