autochdir + encoding=utf8 messes up diff

39 views
Skip to first unread message

Axel Bender

unread,
Apr 1, 2015, 11:37:10 AM4/1/15
to vim...@googlegroups.com
Given the following .vimrc:

---------------
set autochdir
set encoding=utf-8
---------------

and the following directory/file structure:

------
a\aa
b\bb
------

diffing aa and bb with

------------------
gvim -d a\aa b\bb
------------------

will not perform a diff. Instead message "b\bb [NEW DIRECTORY] is seen.

If either of the settings is omitted, the diff is performed.

Here: Windows 7 64-bit, version 7.4.688 MinGW-w64
prob.rar

Christian Brabandt

unread,
Apr 2, 2015, 2:51:05 PM4/2/15
to vim...@googlegroups.com
Hi Axel!
I can confirm, this bug only affects Windows. Here is patch:


Best,
Christian
--
Ein frei denkender Mensch bleibt nicht da stehen, wo der Zufall ihn
hinstößt.
-- Heinrich von Kleist
acd_bug.diff

Bram Moolenaar

unread,
Apr 3, 2015, 8:58:59 AM4/3/15
to Christian Brabandt, vim...@googlegroups.com

Christian Brabandt wrote:

> Hi Axel!
>
> On Mi, 01 Apr 2015, Axel Bender wrote:
>
> > Given the following .vimrc:
> >
> > ---------------
> > set autochdir
> > set encoding=utf-8
> > ---------------
> >
> > and the following directory/file structure:
> >
> > ------
> > a\aa
> > b\bb
> > ------
> >
> > diffing aa and bb with
> >
> > ------------------
> > gvim -d a\aa b\bb
> > ------------------
> >
> > will not perform a diff. Instead message "b\bb [NEW DIRECTORY] is seen.
> >
> > If either of the settings is omitted, the diff is performed.
> >
> > Here: Windows 7 64-bit, version 7.4.688 MinGW-w64
>
> I can confirm, this bug only affects Windows. Here is patch:

Thanks! I'll include it. With one typo fix.

--
My Go, this amn keyboar oesn't have a .

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages