Skip to contentSkip to conversation

Win32: Fix default prefix

PATCH In review Stefan Weil 3 participants 4 messages Jul 31, 2009 – Aug 2, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Win32: Fix default prefix

The old code resulted in wrong escape sequences:

#define CONFIG_QEMU_SHAREDIR "c:\Program Files\Qemu"

gcc warnings:

vl.c:5708:20: warning: unknown escape sequence '\P' vl.c:5708:20: warning: unknown escape sequence '\Q'

Windows can handle slash (/) path separators, and QEMU already adds directories using slash, so there is no need to fight with the correct number of backslashes.

---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
configure +1 -1
index a2e22ad..e556698 100755
@@ -1409,7 +1409,7 @@ fi
 
 if test "$mingw32" = "yes" ; then
   if test -z "$prefix" ; then
-      prefix="c:\\\\Program Files\\\\Qemu"
+      prefix="c:/Program Files/Qemu"
   fi
   mansuffix=""
   datasuffix=""
Signature · 1 line
1.5.6.5
#1 lore raw
Quoted 8 lines · Stefan Weil

The old code resulted in wrong escape sequences:

#define CONFIG_QEMU_SHAREDIR "c:\Program Files\Qemu"

gcc warnings:

vl.c:5708:20: warning: unknown escape sequence '\P' vl.c:5708:20: warning: unknown escape sequence '\Q'

Looks like this got broken by "Generate config-host.h from config-host.mak" (create_config).

Quoted 4 lines

Windows can handle slash (/) path separators, and QEMU already adds directories using slash, so there is no need to fight with the correct number of backslashes.

Do all versions handle them correctly?

- Sebastian

#2 lore raw
Quoted 14 lines · Sebastian Herbszt
Quoted 9 lines · Stefan Weil

The old code resulted in wrong escape sequences:

#define CONFIG_QEMU_SHAREDIR "c:\Program Files\Qemu"

gcc warnings:

vl.c:5708:20: warning: unknown escape sequence '\P' vl.c:5708:20: warning: unknown escape sequence '\Q'

Looks like this got broken by "Generate config-host.h from config-host.mak" (create_config).

Quoted 6 lines
Quoted 4 lines

Windows can handle slash (/) path separators, and QEMU already adds directories using slash, so there is no need to fight with the correct number of backslashes.

Do all versions handle them correctly?

At least all NT-based versions do and I believe Win 9x handles them correctly too.

Best regards,
Filip Navara

#3 lore raw
Quoted 22 lines · Filip Navara
Quoted 20 lines · Sebastian Herbszt
Quoted 9 lines · Stefan Weil

The old code resulted in wrong escape sequences:

#define CONFIG_QEMU_SHAREDIR "c:\Program Files\Qemu"

gcc warnings:

vl.c:5708:20: warning: unknown escape sequence '\P' vl.c:5708:20: warning: unknown escape sequence '\Q'

Looks like this got broken by "Generate config-host.h from config-host.mak" (create_config).

Quoted 5 lines

Windows can handle slash (/) path separators, and QEMU already adds directories using slash, so there is no need to fight with the correct number of backslashes.

Quoted 10 lines
Quoted 2 lines

Do all versions handle them correctly?

At least all NT-based versions do and I believe Win 9x handles them correctly too.

Best regards,
Filip Navara

Even IBM BIOS and all versions of MSDOS I know accept slash and backslash in parameters for file system calls. So do all versions of Windows, too,

Regards
Stefan Weil