win32 dbus-launch.bat replacement

Ralf Habacker ralf.habacker at
Tue May 29 06:09:41 PDT 2007

Tor Lillqvist schrieb:
> Ralf Habacker writes:
>  > from
>  > In the Windows API, the maximum length for a path is MAX_PATH, which is 
>  > defined as 260 characters.
> And then immediately below, it says:
>  > The Unicode versions of several functions permit a maximum path
>  > length of approximately 32,000 characters composed of components up
>  > to 255 characters in length. To specify that kind of path, use the
>  > "\\?\" prefix.
> And one should strive to use only the Unicode versions of all
> functions that take path names nowadays, as Unicode (UTF-16) is the
> what the "NT" (Windows 2000, XP, Vista) kernel actually uses for file
> names etc.
I've appended an updated source for dbus-launch.c, with some MAX_PATH
related fixes, some additional error printing and stuff to distinguish
release/debug compilations.

Are there any other issues with this code beside Tor's unicode
suggestions ? Otherwise I would check this file in.

As I'm not very experienced with the unicode stuff, I have added this
conversations as TODO item. Anyone feel free to implement the missing
unicode conversation stuff.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dbus-launch-win.c

More information about the dbus mailing list