summaryrefslogtreecommitdiffstats
path: root/generic/tclLoad.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-04 16:39:48 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-04 16:39:48 (GMT)
commitba2470470137af8787d19239c6f60d8b182f70b3 (patch)
treee40bc3bcd27564c210916245866b4881d50cf89e /generic/tclLoad.c
parenta7f1089e87dd31ac949522312a911f1c8e013d39 (diff)
parentf28d0bc94fc664d49cd9f24f5359eb108fb0a14b (diff)
downloadtcl-ba2470470137af8787d19239c6f60d8b182f70b3.zip
tcl-ba2470470137af8787d19239c6f60d8b182f70b3.tar.gz
tcl-ba2470470137af8787d19239c6f60d8b182f70b3.tar.bz2
Patch from the cygwin folks
Diffstat (limited to 'generic/tclLoad.c')
-rw-r--r--generic/tclLoad.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/generic/tclLoad.c b/generic/tclLoad.c
index 820707e..202e66a 100644
--- a/generic/tclLoad.c
+++ b/generic/tclLoad.c
@@ -305,6 +305,12 @@ Tcl_LoadObjCmd(
&& (pkgGuess[2] == 'b')) {
pkgGuess += 3;
}
+#ifdef __CYGWIN__
+ if ((pkgGuess[0] == 'c') && (pkgGuess[1] == 'y')
+ && (pkgGuess[2] == 'g')) {
+ pkgGuess += 3;
+ }
+#endif /* __CYGWIN__ */
for (p = pkgGuess; *p != 0; p += offset) {
offset = Tcl_UtfToUniChar(p, &ch);
if ((ch > 0x100)