bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#15570: 24.3.50; Null pointer crash in (ns-convert-utf8-nfd-to-nfc "\


From: Carsten Bormann
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

On Oct 9, 2013, at 20:50, Jan Djärv <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]