From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carsten Bormann Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <1FC6FC8B-68B0-4D93-8B5C-5665B843B2D0@swipnet.se> <09C9BE65-1DB9-48C7-A212-DB9D64347125@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1381352656 28581 80.91.229.3 (9 Oct 2013 21:04:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Oct 2013 21:04:16 +0000 (UTC) Cc: 15570-done@debbugs.gnu.org To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 09 23:04:19 2013 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 1VU0vb-00029c-0U for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Oct 2013 23:04:19 +0200 Original-Received: from localhost ([::1]:43909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VU0va-0006mB-I2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Oct 2013 17:04:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VU0vR-0006lw-El for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 17:04:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VU0vK-0001SC-Np for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 17:04:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VU0vK-0001S2-Kq for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 17:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VU0vK-0002FS-3n for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 17:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carsten Bormann Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Oct 2013 21:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15570 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15570-done@debbugs.gnu.org id=D15570.13813526038476 (code D ref 15570); Wed, 09 Oct 2013 21:04:02 +0000 Original-Received: (at 15570-done) by debbugs.gnu.org; 9 Oct 2013 21:03:23 +0000 Original-Received: from localhost ([127.0.0.1]:38620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VU0ug-0002Cd-Vd for submit@debbugs.gnu.org; Wed, 09 Oct 2013 17:03:23 -0400 Original-Received: from mailhost.informatik.uni-bremen.de ([134.102.201.18]:37943 helo=informatik.uni-bremen.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VU0ud-0002CU-Rk for 15570-done@debbugs.gnu.org; Wed, 09 Oct 2013 17:03:20 -0400 X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de Original-Received: from smtp-fb3.informatik.uni-bremen.de (smtp-fb3.informatik.uni-bremen.de [134.102.224.120]) by informatik.uni-bremen.de (8.14.4/8.14.4) with ESMTP id r99L3Gpp002999; Wed, 9 Oct 2013 23:03:16 +0200 (CEST) Original-Received: from [192.168.217.105] (p54891327.dip0.t-ipconnect.de [84.137.19.39]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp-fb3.informatik.uni-bremen.de (Postfix) with ESMTPSA id 87754194; Wed, 9 Oct 2013 23:03:16 +0200 (CEST) In-Reply-To: <09C9BE65-1DB9-48C7-A212-DB9D64347125@swipnet.se> X-Mailer: Apple Mail (2.1510) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:79123 Archived-At: On Oct 9, 2013, at 20:50, Jan Dj=E4rv wrote: > We now throw an error. Thanks. With that fix, the following workaround makes tramp serviceable again = (ns-win.el). Gr=FC=DFe, 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))))))