From: "Clive Mayo" <cm@ttl-3d.co.uk>
To: <cygwin@cygwin.com>
Subject: Re: file dialog boxes with cygwish80
Date: Thu, 26 Jul 2001 04:37:00 -0000 [thread overview]
Message-ID: <01d601c115c8$0d083a10$9349d0d5@localhost> (raw)
In-Reply-To: <20010724185826.5224.qmail@web4902.mail.yahoo.com>
Not a bug in scriptics tcl/tk 8.0 sorry.
In the file generic\tclFileName.c the function Tcl_TranslateFileName
has the following code which is causing the problem.
/*
* Convert forward slashes to backslashes in Windows paths because
* some system interfaces don't accept forward slashes.
*/
#ifndef __CYGWIN__
if (tclPlatform == TCL_PLATFORM_WINDOWS) {
for (p = Tcl_DStringValue(bufferPtr); *p != '\0'; p++) {
if (*p == '/') {
*p = '\\';
}
}
}
#endif
I guess the above is needed in cygwin, but GetOpenFileName expects a
windows path, so as a work around put the following changes in tkWinDialog.c
667a668,670
> #ifdef __CYGWIN__
> strcpy((char*)ofnPtr->lpstrInitialDir, argv[v]);
> #endif
Clive Mayo
----- Original Message -----
From: "Mike Henninger" <freshyq314@yahoo.com>
To: "Clive Mayo" <cm@ttl-3d.co.uk>
Sent: Tuesday, July 24, 2001 7:58 PM
Subject: Re: file dialog boxes with cygwish80
> I hate to be a pain on what *must* be an easy
> solution, but where is 8.2/8.3 availible for cygwin?
> I used cygwin setup to get the latest tcl/tk version
> (for cygwin) yesterday, and it gave me 8.0.4. Looked
> at contrib directory and didn't find any TCL/TK there.
> I also searched google and got nothing of interest,
> either.
>
> Mike
>
> --- Clive Mayo <cm@ttl-3d.co.uk> wrote:
> > Hi Mike
> >
> > Look's like a bug in 8.0, works fine on 8.2 & 8.3
> > Would it be possible to bring tcl/tk up to the
> > current release ?
> >
> > Clive Mayo
> >
> > ----- Original Message -----
> > From: "Mike Henninger" <freshyq314@yahoo.com>
> > To: <cygwin@cygwin.com>
> > Sent: Monday, July 23, 2001 9:45 PM
> > Subject: file dialog boxes with cygwish80
> >
> >
> > > I am using tk_getOpenFile to grab a file name. I
> > am
> > > using variables to define the -filetypes, -title,
> > and
> > > -initialdir. These all work, except -initialdir,
> > > which goes to the pwd no matter what the contents
> > of
> > > the variable. From there one can navigate and get
> > to
> > > any directory just fine.
> > >
> > > For -initialdir I have tried absolute posix paths,
> > > absolute windows paths, relative pathes of both
> > kinds,
> > > but the only things that will work are ./ and ../
> > Is
> > > this related to the posix path problems that have
> > been
> > > discussed elsewhere on this list? Is there a
> > > workaround?
> > >
> > > cygwin dll 1.3.2-1
> > > cygwish80 8.0.4
> > > xfree86 4.0.3
> > >
> > > thanks,
> > > Mike Henninger
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Make international calls for as low as $.04/minute
> > with Yahoo! Messenger
> > > http://phonecard.yahoo.com/
> > >
> > > --
> > > Unsubscribe info:
> > http://cygwin.com/ml/#unsubscribe-simple
> > > Bug reporting: http://cygwin.com/bugs.html
> > > Documentation: http://cygwin.com/docs.html
> > > FAQ: http://cygwin.com/faq/
> > >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
next parent reply other threads:[~2001-07-26 4:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20010724185826.5224.qmail@web4902.mail.yahoo.com>
2001-07-26 4:37 ` Clive Mayo [this message]
2001-07-23 13:46 Mike Henninger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='01d601c115c8$0d083a10$9349d0d5@localhost' \
--to=cm@ttl-3d.co.uk \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).