unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Carsten Bormann <cabo@tzi.org>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: 15570-done@debbugs.gnu.org
Subject: bug#15570: 24.3.50; Null pointer crash in (ns-convert-utf8-nfd-to-nfc "\377")
Date: Wed, 9 Oct 2013 23:03:15 +0200	[thread overview]
Message-ID: <A9D5C05E-3894-47B6-80B2-A769E350065C@tzi.org> (raw)
In-Reply-To: <09C9BE65-1DB9-48C7-A212-DB9D64347125@swipnet.se>

On Oct 9, 2013, at 20:50, Jan Djärv <jan.h.d@swipnet.se> wrote:

> We now throw an error.

Thanks.

With that fix, the following workaround makes tramp serviceable again (ns-win.el).

Grüße, Carsten

  (defun ns-utf8-nfd-post-read-conversion (length)
    "Calls `ns-convert-utf8-nfd-to-nfc' to compose char sequences."
    (save-excursion
      (save-restriction
        (narrow-to-region (point) (+ (point) length))
        (let ((str (buffer-string)))
          (delete-region (point-min) (point-max))
          (insert
           (condition-case nil
               (ns-convert-utf8-nfd-to-nfc str)
             (error str)))
          (- (point-max) (point-min))))))






      reply	other threads:[~2013-10-09 21:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-09 11:37 bug#15570: 24.3.50; Null pointer crash in (ns-convert-utf8-nfd-to-nfc "\377") Carsten Bormann
2013-10-09 16:31 ` Jan Djärv
2013-10-09 16:57   ` Andreas Schwab
2013-10-09 17:06     ` Jan Djärv
2013-10-09 18:20       ` Stefan Monnier
2013-10-09 18:33   ` Carsten Bormann
2013-10-09 18:50     ` Jan Djärv
2013-10-09 21:03       ` Carsten Bormann [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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A9D5C05E-3894-47B6-80B2-A769E350065C@tzi.org \
    --to=cabo@tzi.org \
    --cc=15570-done@debbugs.gnu.org \
    --cc=jan.h.d@swipnet.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).