Joshua Daniel Franklin | 1 Mar 2002 01:03
Picon
Favicon
Gravatar

mkshortcut debugging problem

I updated to cygutils 0.9.9 yesterday which included the utility
'mkshortcut', which I wrote. I was horrified to find that it dumps
the stack when attempting to set the name for a shortcut (the -n 
option). I *did* make sure it worked before sending Chuck the code, 
after all. My first thought was that I accidentally sent an old 
version, so I got the source and found that it did indeed crash 
when built as I had been doing it. I freely acknowledge that the
code, especially string-handling, is a mess, and after making what 
seem to be arbitary changes it again works...but only from the current
directory. When I copy the new version to /bin (or /usr/bin) this is
what happens:

/usr/src/cygutils-0.9.9/src-gpl$ /usr/src/cygutils-0.9.9/src-gpl/mkshortcut.exe
-DA /usr/local/bin/
[This works, producing bin.lnk in the All Users\Desktop\ dir]
/usr/src/cygutils-0.9.9/src-gpl$ rm /c/Documents\ and\ Settings/All\
Users/Desktop/bin.lnk 
/usr/src/cygutils-0.9.9/src-gpl$ cp
/usr/src/cygutils-0.9.9/src-gpl/mkshortcut.exe /usr/bin/
/usr/src/cygutils-0.9.9/src-gpl$ mkshortcut.exe -DA /usr/local/bin/
mkshortcut.exe: Save to persistant storage failed (Does the directory you are
writing to exist?)

The code that produces this error is:

      MultiByteToWideChar (CP_ACP, 0, lname, -1, widepath, MAX_PATH);
      hres = pf->lpVtbl->Save (pf, widepath, TRUE);
      if (!SUCCEEDED(hres)) 
      {
        fprintf(stderr, "%s: Save to persistant storage failed (Does the
(Continue reading)

Michael A Chase | 1 Mar 2002 01:46
Picon

Re: Path Name Help

----- Original Message -----
From: "Sanjay Gupta" <SGupta <at> Epylon.com>
To: "'Larry Hall (RFK Partners, Inc)'" <lhall <at> rfk.com>; <cygwin <at> cygwin.com>
Sent: Thursday, February 28, 2002 13:10
Subject: RE: Path Name Help

> Thanks for helpful information.
> If I put the double quotes as you have suggested, it worked in cygwin.
>
> exp system/manager file="d:\Oracle8i\Exp\Exp.dmp"  full=Y

You can also use cygpath to convert Cygwin paths to Win32 paths which are
what Oracle programs understand since they haven't been ported to Cygwin
yet. <G>

Visit the Cygwin site (http://cygwin.com/) for lots of useful information.
You should at least read http://cygwin.com/cygwin-ug-net/cygwin-ug-net.html
to learn about the Cygwin utilities.
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.

--
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/
(Continue reading)

Charles Wilson | 1 Mar 2002 02:31
Picon
Favicon

Re: Terminal Emulator & Mouse

Please do not send cygwin related mail to me.  Keep it on the list.

AM Shaikh wrote:

> i have a similar question ...
> 
> In xterm/kvt windows usually I can paste the selected text using middle
> button .. but now if my mouse has a wheel and not the third button how would
> i paste the text ?
> 
> In UNIX i can paste by pressing both buttons together .. but that doesn't
> work in Cygwin ...
> 
> any ideas ?

Nope; I dunno.  Check the manual, search the web...

--Chuck

--
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/

Charles Wilson | 1 Mar 2002 02:34
Picon
Favicon

Re: mkshortcut debugging problem

Joshua Daniel Franklin wrote:

> 
> The code that produces this error is:
> 
>       MultiByteToWideChar (CP_ACP, 0, lname, -1, widepath, MAX_PATH);
>       hres = pf->lpVtbl->Save (pf, widepath, TRUE);
>       if (!SUCCEEDED(hres)) 
>       {
>         fprintf(stderr, "%s: Save to persistant storage failed (Does the
> directo
> ry you are writing to exist?)\n", prog_name);
>         exit(3);
>       }
> 
> I'm afraid I have no idea how to debug this, and I've begun to make what
> seem like arbitrary changes. Why would it work from one directory and not
> another? (BTW, I tried printf'ing the lname string and it is identical in
> both cases.) Anyone have any suggestions?

Permissions or ACLs on the two different directories?  Try

getfacl {dir1}
getfacl {dir2}

Same?  Different?

--Chuck

--
(Continue reading)

AM Shaikh | 1 Mar 2002 03:36
Picon
Favicon

Re: Terminal Emulator & Mouse

Charles ..sorry for inconvinience ...

I also got the solution ... with a wheel mouse, clicking the wheel does the
job of third button.

Rgds
----- Original Message -----
From: "Charles Wilson" <cwilson <at> ece.gatech.edu>
To: <cygwin <at> cygwin.com>
Cc: "AM Shaikh" <junosuser <at> yahoo.com>
Sent: Thursday, February 28, 2002 8:31 PM
Subject: Re: Terminal Emulator & Mouse

> Please do not send cygwin related mail to me.  Keep it on the list.
>
>
> AM Shaikh wrote:
>
> > i have a similar question ...
> >
> > In xterm/kvt windows usually I can paste the selected text using middle
> > button .. but now if my mouse has a wheel and not the third button how
would
> > i paste the text ?
> >
> > In UNIX i can paste by pressing both buttons together .. but that
doesn't
> > work in Cygwin ...
> >
> > any ideas ?
(Continue reading)

Joshua Daniel Franklin | 1 Mar 2002 04:30
Picon
Favicon
Gravatar

Re: mkshortcut debugging problem

>Permissions or ACLs on the two different directories?  Try
>
>getfacl {dir1}
>getfacl {dir2}
>
>Same?  Different?

Well, it's writing to the same directory in both cases, but the ACLs are:

$ getfacl.exe /c/Documents\ and\ Settings/All\ Users/Desktop/
# file: /c/Documents and Settings/All Users/Desktop/
# owner: Administrator
# group: None
user::rwx
group::rwx
group:Users:r-x
group:Power Users:rwx
mask::rwx
other::r-x
default:user::---
default:group::---
default:group:Users:---
default:group:Power Users:rwx
default:mask::---
default:other::---

Or did you mean the ACLs on /bin and /usr/src...? Those look identical.

__________________________________________________
Do You Yahoo!?
(Continue reading)

Robert Chesler | 1 Mar 2002 05:53

xmh support utilities from mh system apparently missing

glad to see xmh on cygwin but apparently xmh must call the MH
commands such as "inc" which don't seem to be in any cygwin package.
Anyone have a solution?

--
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/

Ling F. Zhang | 1 Mar 2002 07:50
Picon
Favicon

install freeze in win2k

I am just try to install cygwin in my win2k machine. 
I selected everything after some serious
mouse-clicking...and after it downloaded everything,
it starts to install and my computer is dead frozen
when it try to install gcc-lib*....anyone has similar
problem and know fix?

__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.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/

Christophe LEITIENNE | 1 Mar 2002 08:23
Picon

Re: [ANNOUNCEMENT] Updated: cygwin-1.3.10-1 - bash application error

Hi all,

> > > bash.exe Application Error
> > > The application failed to initialize properly (0xc0000022). Click on
OK to terminate the application.
> > >
> >
> > I am also getting this error after I upgraded.

I'm experiencing the same problem.
ANY shell you start from login generates this error (not only bash).

Christophe LEITIENNE

--
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/

S.L | 1 Mar 2002 08:32

Re: rxvt & custom fonts

> Alec,
> 
> Cygwin uses Windows' fonts. The only exception I know of is the TeX 
[...]

A question about something I've been digging a long time. Are there any
means to make those "Terminal" bitmapped Windows fonts to work with rxvt?
If I passed "Fixedsys" or "System" to -fn option, it's ok, they show up. For
Terminal I tried "Terminal", "Term", and their mappings in Fonts tab from
MS-Dos Prompt propreties (i.e. "10 x 18"), but no results.

TIA, SLao

--

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

--
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/


Gmane