From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Linderman Newsgroups: gmane.emacs.bugs Subject: bug#19591: 24.4; file & buffer compare failures Date: Tue, 13 Jan 2015 11:56:54 -0800 Message-ID: <54B57886.4030107@g.nevcal.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------070600000609000908090104" X-Trace: ger.gmane.org 1421182772 24540 80.91.229.3 (13 Jan 2015 20:59:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Jan 2015 20:59:32 +0000 (UTC) To: 19591@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 13 21:59:25 2015 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 1YB8Yd-0004rn-HH for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Jan 2015 21:59:23 +0100 Original-Received: from localhost ([::1]:41394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB8Yc-0000Ri-SC for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Jan 2015 15:59:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB8YT-0000Fb-8g for bug-gnu-emacs@gnu.org; Tue, 13 Jan 2015 15:59:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YB8YK-00070O-37 for bug-gnu-emacs@gnu.org; Tue, 13 Jan 2015 15:59:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47035) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB8YJ-00070K-WC for bug-gnu-emacs@gnu.org; Tue, 13 Jan 2015 15:59:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YB8YJ-0002px-Qv for bug-gnu-emacs@gnu.org; Tue, 13 Jan 2015 15:59:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Linderman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Jan 2015 20:59:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19591 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142118273810861 (code B ref -1); Tue, 13 Jan 2015 20:59:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Jan 2015 20:58:58 +0000 Original-Received: from localhost ([127.0.0.1]:55892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YB8YC-0002p2-S6 for submit@debbugs.gnu.org; Tue, 13 Jan 2015 15:58:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60515) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YB7ac-0001KK-W2 for submit@debbugs.gnu.org; Tue, 13 Jan 2015 14:57:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YB7aV-0001G4-J4 for submit@debbugs.gnu.org; Tue, 13 Jan 2015 14:57:17 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:60173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB7aV-0001Fw-EN for submit@debbugs.gnu.org; Tue, 13 Jan 2015 14:57:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB7aT-0000Ye-E3 for bug-gnu-emacs@gnu.org; Tue, 13 Jan 2015 14:57:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YB7aO-0001ES-8B for bug-gnu-emacs@gnu.org; Tue, 13 Jan 2015 14:57:13 -0500 Original-Received: from gproxy10-pub.mail.unifiedlayer.com ([69.89.20.226]:32795) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1YB7aN-0001E6-Vm for bug-gnu-emacs@gnu.org; Tue, 13 Jan 2015 14:57:08 -0500 Original-Received: (qmail 28078 invoked by uid 0); 13 Jan 2015 19:57:03 -0000 Original-Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy10.mail.unifiedlayer.com with SMTP; 13 Jan 2015 19:57:03 -0000 Original-Received: from box1033.bluehost.com ([69.195.124.233]) by cmgw2 with id fXwz1p00v52FVwM01Xx2nW; Tue, 13 Jan 2015 12:57:02 -0700 X-Authority-Analysis: v=2.1 cv=VqmwXYGn c=1 sm=1 tr=0 a=bHMQH+OLnPEWGwbUEerQzQ==:117 a=bHMQH+OLnPEWGwbUEerQzQ==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=DgqbUt__V68A:10 a=9HSTQGAzAAAA:8 a=7j9GTTBHwvYA:10 a=bRjc4174-Z4A:10 a=YNv0rlydsVwA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=9iDbn-4jx3cA:10 a=cKsnjEOsciEA:10 a=gZbpxnkM3yUA:10 a=-mG4SERhc4zMCfHv_-sA:9 a=yjrAdky0KeE_4bQk:21 a=uHpg9kRacX4jnaG-:21 a=QEXdDO2ut3YA:10 a=9NLjDthh5muf1cDArDsA:9 a=dhF1FG57ivsFQpCl:21 a=_W_S_7VecoQA:10 Original-Received: from [71.80.217.107] (port=57007 helo=[192.168.43.253]) by box1033.bluehost.com with esmtpa (Exim 4.82) (envelope-from ) id 1YB7aF-0000hF-Ff for bug-gnu-emacs@gnu.org; Tue, 13 Jan 2015 12:56:59 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 X-Identified-User: {1756:box1033.bluehost.com:areliabl:nevcal.com} {sentby:smtp auth 71.80.217.107 authed with test@nevcal.com} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Tue, 13 Jan 2015 15:58:53 -0500 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:98335 Archived-At: This is a multi-part message in MIME format. --------------070600000609000908090104 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit I'm delighted that emacs 24.4 can now open all files, even those that have characters in their names that are not part of the current ANSI set. However, the auxiliary program diff when launched by emacs still doesn't accept files with such characters. The latest version of diff for windows that I can find is 2.8.7. The error message from diff in the error buffer seems to contain the proper characters for the file name, but diff reports it cannot find the file so I tihnk it is a deficiency in diff, like was in emacs versions prior to 24.4, using the "bytes" version of open instead of the "widechars" version. While it may be somewhat inefficient, it would be possible for emacs to work around the deficiency of diff by saving temporary copies of the buffers to be compared using generated names in the ANSI subset. Obviously I can achieve that myself, and have a number of times, but then one must be careful to copy the fixed data back to the original file. In GNU Emacs 24.4.1 (x86_64-w64-mingw32) of 2014-10-20 on KAEL Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=/z/emacs --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --with-wide-int --with-jpeg --with-xpm --with-png --with-tiff --with-rsvg --with-xml2 --with-gnutls --with-xft --with-sound=yes --with-file-notification=yes --without-dbus --without-imagemagick 'CFLAGS=-Ofast -fomit-frame-pointer -funroll-loops -g0 -pipe' 'CPPFLAGS=-DNDEBUG -DDBUS_STATIC_BUILD' 'LDFLAGS=-static-libgcc -static-libstdc++ -static -s -Wl,-s'' Important settings: value of $LANG: ENU locale-coding-system: cp1252 Major mode: Emacs-Lisp Minor modes in effect: shell-dirtrack-mode: t which-function-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: o o p e n s SPC o n e SPC t h a t SPC i t SPC p p r e v i o u s l y SPC c o u l d n ' ' t SPC ( b e c a u s e SPC t h e SPC c h a a r r a c e t e r SPC i s SPC n o t SPC i n SPC t h e SPC c u r r e n t A N S I SPC A N S I s e t ) , SPC t h e SPC d i s p l a y SPC o f SPC t h e SPC f i l e SPC n a m e SPC i n SPC t h e SPC t i t l e SPC b a r SPC h a s SPC c h o s e s u c h SPC c h a r a c t e r s o m i t t e d . C-n C-SPC C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b w C-SPC C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b w C-SPC > w < C-x k y e s x r e p o r t Recent messages: Checking 151 files in d:/emacs/share/emacs/24.4/lisp/emacs-lisp... Checking 24 files in d:/emacs/share/emacs/24.4/lisp/cedet... Checking 57 files in d:/emacs/share/emacs/24.4/lisp/calendar... Checking 87 files in d:/emacs/share/emacs/24.4/lisp/calc... Checking 95 files in d:/emacs/share/emacs/24.4/lisp/obsolete... Checking for load-path shadows...done Auto-saving...done Mark set [3 times] Saved text from " I'm delighted that emacs 24.4 can, at l" Load-path shadows: None found. Features: (pp shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils add-log python-mode derived skeleton advice help-fns edmacro kmacro cl-macs thingatpt flymake rx shell pcomplete cc-cmds cc-engine cc-vars cc-defs compile cl gv cl-loaddefs cl-lib comint ansi-color ring misearch multi-isearch help-mode easymenu whitespace which-func imenu time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32notify w32 multi-tty emacs) Memory information: ((conses 16 169994 18131) (symbols 56 23492 0) (miscs 48 92 169) (strings 32 28274 6229) (string-bytes 1 978775) (vectors 16 21772) (vector-slots 8 1297449 203189) (floats 8 77 457) (intervals 56 1134 37) (buffers 960 17)) --------------070600000609000908090104 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

I'm delighted that emacs 24.4 can now open all files, even those
that have characters in their names that are not part of the current
ANSI set.

However, the auxiliary program diff when launched by emacs still doesn't
accept files with such characters. The latest version of diff for
windows that I can find is 2.8.7. The error message from diff in the
error buffer seems to contain the proper characters for the file name,
but diff reports it cannot find the file so I tihnk it is a deficiency
in diff, like was in emacs versions prior to 24.4, using the
"bytes" version of open instead of the "widechars" version.

While it may be somewhat inefficient, it would be possible for emacs to
work around the deficiency of diff by saving temporary copies of the
buffers to be compared using generated names in the ANSI subset.

Obviously I can achieve that myself, and have a number of times, but then
one must be careful to copy the fixed data back to the original file.


In GNU Emacs 24.4.1 (x86_64-w64-mingw32)
 of 2014-10-20 on KAEL
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/z/emacs --host=x86_64-w64-mingw32
 --target=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --with-wide-int
 --with-jpeg --with-xpm --with-png --with-tiff --with-rsvg --with-xml2
 --with-gnutls --with-xft --with-sound=yes --with-file-notification=yes
 --without-dbus --without-imagemagick 'CFLAGS=-Ofast
 -fomit-frame-pointer -funroll-loops -g0 -pipe' 'CPPFLAGS=-DNDEBUG
 -DDBUS_STATIC_BUILD' 'LDFLAGS=-static-libgcc -static-libstdc++ -static
 -s -Wl,-s''

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1252

Major mode: Emacs-Lisp

Minor modes in effect:
  shell-dirtrack-mode: t
  which-function-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<backspace> <backspace> o <backspace> <backspace> o
p e n s SPC o n e SPC t h a t SPC i t SPC p <backspace>
<backspace> <return> p r e v i o u s l y SPC c o u
l d n ' <backspace> ' t SPC ( b e c a u s e SPC t h
e SPC c h a a r <backspace> <backspace> r a c e <backspace>
t e r SPC i s SPC n o t SPC i n SPC t h e SPC c u r
r e n t A N S I <backspace> <backspace> <backspace>
<backspace> SPC A N S I <return> s e t ) , SPC t h
e SPC d i s p l a y SPC o f SPC t h e SPC f i l e SPC
n a m e SPC i n SPC t h e SPC t i t l e SPC b a r SPC
h a s SPC c h o s e <backspace> <backspace> <backspace>
<backspace> <backspace> s u c h SPC c h a r a c t e
r s <return> o m i t t e d . <help-echo> <down-mouse-1>
<mouse-1> C-n C-SPC C-b C-b C-b C-b C-b C-b C-b C-b
C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b
<escape> w <help-echo> <down-mouse-1> <mouse-1> C-SPC
C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b
C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b
C-b C-b C-b C-b C-b <escape> w <help-echo> <down-mouse-1>
<mouse-1> C-SPC <escape> > <escape> w <down-mouse-1>
<mouse-1> <escape> < <help-echo> <down-mouse-1> <mouse-1>
C-x k <return> y e s <return> <escape> x r e p o r
t <tab> <return>

Recent messages:
Checking 151 files in d:/emacs/share/emacs/24.4/lisp/emacs-lisp...
Checking 24 files in d:/emacs/share/emacs/24.4/lisp/cedet...
Checking 57 files in d:/emacs/share/emacs/24.4/lisp/calendar...
Checking 87 files in d:/emacs/share/emacs/24.4/lisp/calc...
Checking 95 files in d:/emacs/share/emacs/24.4/lisp/obsolete...
Checking for load-path shadows...done
Auto-saving...done
Mark set [3 times]
Saved text from "
I'm delighted that emacs 24.4 can, at l"

Load-path shadows:
None found.

Features:
(pp shadow sort gnus-util mail-extr emacsbug message format-spec rfc822
mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils add-log python-mode derived skeleton advice
help-fns edmacro kmacro cl-macs thingatpt flymake rx shell pcomplete
cc-cmds cc-engine cc-vars cc-defs compile cl gv cl-loaddefs cl-lib
comint ansi-color ring misearch multi-isearch help-mode easymenu
whitespace which-func imenu time-date tooltip electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp
w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process w32notify w32
multi-tty emacs)

Memory information:
((conses 16 169994 18131)
 (symbols 56 23492 0)
 (miscs 48 92 169)
 (strings 32 28274 6229)
 (string-bytes 1 978775)
 (vectors 16 21772)
 (vector-slots 8 1297449 203189)
 (floats 8 77 457)
 (intervals 56 1134 37)
 (buffers 960 17))

--------------070600000609000908090104--