Cygwin mkshortcut Unicode Windows filename support

Submitted by tomo on September 8, 2010 - 1:03am

Cygwin comes with utilities for dealing with Windows-style shortcut files. readshortcut will output the file path that a shortcut links to (and more) and mkshortcut can create Windows shortcuts. However, there is currently one limitation. Windows filenames are in Unicode and have certain other limitations that Posix filenames do or don't have. The current Cygwin mkshortcut doesn't deal with such Unicode filenames. However, you can patch it so that it does.

1. Get source for all Cygwin utils at:

2. You may need to install src packages for the following:

3. The original patch from[email protected]/msg23048.html no longer applies cleanly so get the patch or the whole mkshortcut.c file attached here.

4. ./configure && make

And now you should have a mkshortcut that supports Windows filenames!

Read the rest of this article...
© 2010-2014 Saigonist.