monotone

Issue 66: mtn gives emacs unix directory separators on windows

Reported by Unknown User, Jul 13, 2007

(This entry was imported from the savannah tracker, original 
location: https://savannah.nongnu.org/bugs/index.php?20477)

When attempting a 3 way merge, monotone gives emacs paths with unix 
style directory separators:

("C:\\Program Files\\emacs\\emacs-22.1\\bin\\emacs.exe" 
"--eval" "(ediff-merge-files-with-ancestor 
\"C:\\DOCUME~1\\brian\\LOCALS~1\\Temp/mtn.left.DPG2JV\" 
\"C:\\DOCUME~1\\brian\\LOCALS~1\\Temp/mtn.right.UGE0ZU\" 
\"C:\\DOCUME~1\\brian\\LOCALS~1\\Temp/mtn.ancestor.KQMJR0\"
 nil 
\"C:\\DOCUME~1\\brian\\LOCALS~1\\Temp/mtn.merged.WK8A02\")&
quot;)

monotone version:
-----------------
monotone 0.35 (base revision: 
f92dd754bf5c1e6eddc9c462b8d68691cfeb7f8b)
Running on          : Windows NT/2000/XP/2003 (5.1, build 2600, 
Service Pack 2)
on ia32 (level 15, rev 12034)
C++ compiler        : GNU C++ version 3.4.2 (mingw-special)
C++ standard library: GNU libstdc++ version 20040907
Boost version       : 1_33_1
Changes since base revision:
format_version "1"

new_manifest [33fa9f84dee6ec2e1bde81b607a067befbe2fc3e]

old_revision [f92dd754bf5c1e6eddc9c462b8d68691cfeb7f8b]

patch "Makefile.am"
 from [ecc00e0b8e9b5350157a1922e430ade4508d31bd]
   to [a52adc6a23a4bedf2d636a6c3e91cd46ce900a35]

Comment 1 by Unknown User, Jul 13, 2007

Is this a problem?  On DOS and Win32, \ and / are both directory 
separators, basically interchangeable.

Comment 2 by Unknown User, Jul 13, 2007

added attachment emacsError.txt

Comment 3 by Unknown User, Jul 13, 2007

Ooops again, I didn't see the post a comment thing.

Well emacs gives the error in the attached text file (forgot to 
include it when I submitted the bug), and then doesn't want to 
proceed with the merge

Comment 4 by Unknown User, Aug 5, 2007

added attachment monotonerc

Comment 5 by Stephen Leake, Sep 3, 2012

Note that in the error message in emacsError.txt there are _no_ 
directory separators, so the title of this issue is misleading.

The problem is that the Windows directory separator `\` is an escape 
in elisp string syntax, so Emacs drops it from the string. The fix 
is to convert those to Unix directory separators.

fixed in ef39de24..  9/6/2007
Status: Fixed

Created: 17 years 4 months ago by Unknown User

Updated: 12 years 2 months ago

Status: Fixed

Followed by: 1 person

Labels:
Type:Incorrect Behavior
Component:Portability
Priority:Medium

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status