Re: The C locale

2009-09-22 Thread Lapo Luchini
Andy Koppe wrote: > No, it isn't. UTF-16 filename characters that can't be represented in > the current charset are encoded by a ^N followed by the character's > UTF-8 representation. OK, right. > For example, a Windows filename "bäh" turns into "bŤh" in the C locale, > while it shows up correct

Re: cygdrive prefix

2009-09-22 Thread Thomas Plank
Linda Walsh (cyg...@tlinx.org) wrote: > OTOH, at least the defaults are pretty sensible (I can just hit ENTER), > through the setup -- EXCEPT...at the end -- how many times do I > have to tell setup that I *STILL* don't want the icon on my desktop??! I'm using cygwin on two different computers (h

Re: [1.7] symlink regression

2009-09-22 Thread Corinna Vinschen
On Sep 21 15:06, Eric Blake wrote: > In cygwin 1.5, symlink("a",d) correctly failed with EEXIST regardless of > whether d was "dir", "dir/", or "dir/.". But in 1.7, it is failing with > ENOENT > for just "dir/", and failing a gnulib test as a result. STC: > > $ mkdir dir > $ ln -sT nowhere di

Re: [1.7] Invalid UTF8 while creating a file -> cannot delete?

2009-09-22 Thread Corinna Vinschen
On Sep 21 19:54, Andy Koppe wrote: > 2009/9/21 Corinna Vinschen: > > As you might know, invalid bytes >= 0x80 are translated to UTF-16 by > > transposing them into the 0xdc00 - 0xdcff range by just or'ing 0xdc00. > > The problem now is that readdir() will return the transposed characters > > as if

Re: non-BMP character width

2009-09-22 Thread Corinna Vinschen
On Sep 22 06:57, Lapo Luchini wrote: > Corinna Vinschen wrote: > > Sure. I was specificially asking for a testcase, preferrably in > > plain C, which allows to reproduce this under a debugger. > > Actually, I can't reproduce that, but I guess it's a problem of the > specific console he's using (T

[ANNOUNCEMENT] [1.7] Updated: {octave,octave-devel,octave-doc}-3.2.3-1

2009-09-22 Thread Marco Atzeri
New versions of {octave,octave-devel,octave-doc}-3.2.3-1 for cygwin-1.7 are available in the Cygwin distribution: This is a minor bug fix release For all the main changes http://www.gnu.org/software/octave/NEWS-3.2.html DESCRIPTION The GNU Octave language for numerical computations Octave is

[ANNOUNCEMENT] [1.7] Updated: GraphicsMagick-1.3.7-1

2009-09-22 Thread Marco Atzeri
Version 1.3.7-1 of GraphicsMagick libGraphicsMagick-devel libGraphicsMagick3 perl-Graphics-Magick have been uploaded for cygwin-1.7 DESCRIPTION GraphicsMagick is the swiss army knife of image processing. It provides a robust and efficient collection of tools and libraries which suppor

[ANNOUNCEMENT] [1.7] Updated: {libhdf5_0,libhdf5-devel,hdf5}-1.6.9-2

2009-09-22 Thread Marco Atzeri
Version {libhdf5_0,libhdf5-devel,hdf5}-1.6.9-2 for cygwin-1.7 have been uploaded. DESCRIPTION HDF5 is a suite/library that makes possible the management of extremely large and complex data collections. HOMEPAGE http://www.hdfgroup.org/HDF5/ CHANGES This is a cygwin fix release. Programs were mis

[ANNOUNCEMENT] [1.7] Updated: SuiteSparse-3.4.0-3

2009-09-22 Thread Marco Atzeri
New versions of SuiteSparse / libSuiteSparse-devel 3.4.0-3 for cygwin-1.7 are available in the Cygwin distribution: CHANGES These is a cygwin header fix release. DESCRIPTION SuiteSparse is library for sparse matrix. It is used to compile Octave HOMEPAGE http://www.cise.ufl.edu/research/sparse/

Re: [1.7] symlink regression

2009-09-22 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Corinna Vinschen on 9/22/2009 3:27 AM: > I reworked symlink's error handling so that in my testing I now get > the exact same error messages as on Linux: > > $ rm wqwqwq > $ ln -sT nowhere wqwqwq/ > ln: creating symbolic link `wqwqw

Re: The C locale

2009-09-22 Thread Andy Koppe
2009/9/22 Lapo Luchini: >> For example, a Windows filename "bäh" turns into "bŤh" in the C locale, >> while it shows up correctly with explicitly set ISO-8859-1 or CP1252. > > Uh? Doesn't seem so to me: if I create "bäh" in WindowsExplorer, then > open up an UTF-8 mintty console I have a consisten

Re: Can't get SSHD started after successfully runnin g sshd-host-configâ

2009-09-22 Thread Kyle Stanek
Huang Bambo wrote: Try run /usr/sbin/sshd and tell me the output. /usr/sbin/sshd outputs nothing and returns immediately 2009/9/22 Kyle Stanek > > > Hello, > > I'm having trouble getting the sshd service running under > cygwin. ?I am running Cygwin on Windows XP SP3. ?I have successfull

Re: Problem with GCC4[1.7]

2009-09-22 Thread Angelo Graziosi
Dave Korn wrote: Here's one I just regenerated Now it WORKS!! (I suspected something was wrong with the old gnat.bsdiff...) Thanks, Angelo. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.h

Re: Can't get SSHD started after successfully running sshd-host-configâ

2009-09-22 Thread Kyle Stanek
> On 09/21/2009 08:27 PM, Kyle Stanek wrote: > > Hello, > > I'm having trouble getting the sshd service running under > cygwin. I am running Cygwin on Windows XP SP3. I have successfully > run ssh-host-config, however I get errors when I try and start the > service using cygrunsrv or net: > > [fid

Re: Can't get SSHD started after successfully running sshd-host-configâ

2009-09-22 Thread Marco Atzeri
--- Mar 22/9/09, Kyle Stanek ha scritto: > Da: Kyle Stanek > Oggetto: Re: Can't get SSHD started after successfully running > sshd-host-configâ > A: cygwin@cygwin.com > Data: Martedì 22 settembre 2009, 15:50 > > > On 09/21/2009 08:27 PM, Kyle Stanek wrote: > > > > Hello, > > > > I'm having tro

Re: Opening a socket connection in a fork ?

2009-09-22 Thread Corinna Vinschen
On Sep 16 22:16, Gu1ll4um3r0m41n wrote: > Hello, > I'm trying to run a program on cygwin that forks, opens a socket > connection and sends the status of the connection to the parent > process using pipes. The parent process then sends data through the > opened socket. > The program works well on li

Re: Problem with GCC4[1.7]

2009-09-22 Thread Dave Korn
Angelo Graziosi wrote: > Dave Korn wrote: >> Here's one I just regenerated > > Now it WORKS!! I hacked out a duplicate call to __main and updated the checksum in the PE file header. Also, this version gives you infinite lives :-P cheers, DaveK -- Problem reports: http://cyg

how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread tianlijian
how to let cygwin does not mount /bin /usr/bin automaticlly? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread Dave Korn
tianlijian wrote: > how to let cygwin does not mount /bin /usr/bin automaticlly? Lots of things won't work without that mount. I advise not to tamper with it. cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Docum

Re: Can't get SSHD started after successfully running sshd-host-configâ

2009-09-22 Thread Larry Hall (Cygwin)
On 09/22/2009 09:50 AM, Kyle Stanek wrote: take the simple route out and remove Cygwin (see the FAQ for pointers on how) and reinstall. I am hesitant to do this, as I have spent a good amount of time customizing my Cygwin environment. However, if you think this is the only way to go I can do i

Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread tianlijian
I use a older version of 1.7, which do not mount `/bin', `/usr/bin' automatically. It works well. On Tue, Sep 22, 2009 at 11:04 PM, Dave Korn wrote: > tianlijian wrote: >> how to let cygwin does not mount /bin /usr/bin automaticlly? > >  Lots of things won't work without that mount.  I advise not

RE: Can't get SSHD started after successfully running sshd-host-configâ

2009-09-22 Thread Kyle Stanek
Ahh...Thanks for the pointer. Here's the output now: [fido ~]$ cygcheck /usr/sbin/sshd C:\cygwin\usr/sbin/sshd.exe C:\cygwin\bin\cygcrypt-0.dll C:\cygwin\bin\cygwin1.dll C:\WINDOWS\system32\ADVAPI32.DLL C:\WINDOWS\system32\KERNEL32.dll C:\WINDOWS\system32\ntdll.dll

Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread Larry Hall (Cygwin)
On 09/22/2009 11:01 AM, tianlijian wrote: I use a older version of 1.7, which do not mount `/bin', `/usr/bin' automatically. It works well. Why do you care what Cygwin requires here? Are you having a problem? -- Larry Hall http://www.rfk.com RFK Partners, Inc.

Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread Dave Korn
tianlijian wrote: > I use a older version of 1.7, which do not mount `/bin', `/usr/bin' > automatically. Something must have gone wrong with creating fstab during the upgrade I guess, it should have been done. > It works well. What happens when a shell script begins "#!/bin/sh"? Alternativ

Re: Can't get SSHD started after successfully running sshd-host-configâ

2009-09-22 Thread Larry Hall (Cygwin)
On 09/22/2009 11:07 AM, Kyle Stanek wrote: Ahh...Thanks for the pointer. Here's the output now: [fido ~]$ cygcheck /usr/sbin/sshd C:\cygwin\usr/sbin/sshd.exe C:\cygwin\bin\cygcrypt-0.dll C:\cygwin\bin\cygwin1.dll C:\WINDOWS\system32\ADVAPI32.DLL C:\WINDOWS\system32\KERN

Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread ︶ㄣ無名氏
I want to put thd command according to filesytem hierarchy standard, that is putting the cmd such as sh in /bin, and env in /usr/bin/. On Tue, Sep 22, 2009 at 23:06, Larry Hall (Cygwin) wrote: > > On 09/22/2009 11:01 AM, tianlijian wrote: >> >> I use a older version of 1.7, which do not mount `/b

Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread Larry Hall (Cygwin)
On 09/22/2009 11:30 AM, ︶ㄣ無名氏 wrote: On Tue, Sep 22, 2009 at 23:06, Larry Hall (Cygwin) wrote: ^ . Thanks. On 09/22/2009 11:01 AM, tianlijian wrote: I use a older version of 1.7, whi

RE: Can't get SSHD started after successfully running sshd-host-configâ

2009-09-22 Thread Kyle Stanek
Thanks a lot for the help. I did the following and sshd now runs successfully: 0. I did some grepping to try and find permissions to reset after my erroneous direct call to /usr/sbin/sshd. I saved these permissions in a script which I ran. I'm not sure if this contributed to the fix or not.

Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread ︶ㄣ無名氏
Thanks. I want to know how to change this configuration. I do as follows: bash-3.2$ /bin/umount /usr/bin umount: /usr/bin: Operation not permitted but i does not work. Any idea? On Tue, Sep 22, 2009 at 23:40, Larry Hall (Cygwin) wrote: > On 09/22/2009 11:30 AM, ︶ㄣ無名氏 wrote: >> >> On Tue, Sep 2

Re: [1.7] Invalid UTF8 while creating a file -> cannot delete?

2009-09-22 Thread Andy Koppe
2009/9/22 Corinna Vinschen: >> > As you might know, invalid bytes >= 0x80 are translated to UTF-16 by >> > transposing them into the 0xdc00 - 0xdcff range by just or'ing 0xdc00. >> > The problem now is that readdir() will return the transposed characters >> > as if they are the original characters.

Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread Andy Koppe
2009/9/22 ︶ㄣ無名氏: > Thanks. I want to know how to change this configuration. > > I do as follows: > > bash-3.2$ /bin/umount /usr/bin > umount: /usr/bin: Operation not permitted > > but i does not work. Any idea? /etc/fstab -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread Larry Hall (Cygwin)
Again, I'd ask that you . I don't need the spam and others that respond to you also are likely to not want to see more. On 09/22/2009 12:11 PM, ︶ㄣ無名氏 wrote: Thanks. I want to know how to change this configuration. I do as follows: bash-3.2$ /bin/umo

Re: The C locale

2009-09-22 Thread Lapo Luchini
Andy Koppe wrote: > You've presumably got mintty set to UTF-8, hence mintty's output > conversion turned ls's ISO-8859-1 "Ť" (i.e. "\xC3\xA4") into "ä". There never was any ISO-8859-1 "Ť" in the first place, only one a-umlaut entered in WindowsExplorer (in the expected way) and correctly interpr

Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread Christopher Faylor
On Wed, Sep 23, 2009 at 12:11:23AM +0800, "???" wrote: >Thanks. I want to know how to change this configuration. > >I do as follows: > >bash-3.2$ /bin/umount /usr/bin >umount: /usr/bin: Operation not permitted > >but i does not work. Any idea? If you want /usr/bin to point someplace no

Re: The C locale

2009-09-22 Thread Mark J. Reed
On Tue, Sep 22, 2009 at 12:26 PM, Lapo Luchini wrote: > There never was any ISO-8859-1 "Ť" in the first place, only one > a-umlaut entered in WindowsExplorer (in the expected way) and correctly > interpreted by a UTF8-capable terminal which is doing his job. > > Nobody ever intended to write a Lat

Re: The C locale

2009-09-22 Thread Lapo Luchini
Mark J. Reed wrote: > Yes, but it's working because you (1) lied about your locale (using C > when your terminal is set to UTF-8) and (2) happen to have your > terminal set to UTF-8, which is how Cygwin happens to be encoding the > character. It's a big accident and stops working if you were > ac

Re: [1.7] Invalid UTF8 while creating a file -> cannot delete?

2009-09-22 Thread Corinna Vinschen
On Sep 22 17:12, Andy Koppe wrote: > 2009/9/22 Corinna Vinschen: > >> Therefore, when converting a UTF-16 Windows filename to the current > >> charset, 0xDC?? words should be treated like any other UTF-16 word > >> that can't be represented in the current charset: it should be encoded > >> as a ^N

Re: syntax for Cygwin bash invoking Win apps

2009-09-22 Thread Ziser, Jesse
More strange behavior when running Cygwin apps from a Windows prompt. The quoting seems not to follow any rules that I can manage to track down: The following are normal and expected, given that we discovered that all Cygwin apps do some kind of as-yet-undefined partial bash preprocessing on th

Re: [1.7] rename/renameat error

2009-09-22 Thread Eric Blake
Eric Blake byu.net> writes: > > > > Cygwin 1.7 is > > > > detecting this situation (which is a step up from 1.5 which did the rename > > > > anyways), but sets errno to EBUSY instead of EINVAL. > > > > > > Thanks for catching. Feel free to fix the rename function accordingly. > > > > OK, I'll

Re: 1.7 beta vs MSSE-- breaks 'cvs co', apparently on rename()

2009-09-22 Thread Dave Korn
John Hood wrote: > I'm having a problem with 1.7 beta on Windows XP with the Microsoft > Security Essentials public beta installed. > > Microsoft Security Essentials Version: 1.0.1500.0 > > If I try 'cvs co ' or 'cvs up', CVS will run for a while but > eventually exit with > > cvs [checkout

RE: Permission denied (publickey,password,keyboard-interactive).

2009-09-22 Thread Dave M
Hi! I am following this: http://pigtail.net/LRP/printsrv/cygwin-sshd.html And I am to the part where I am testing ssh with the following command: $ ssh localhost -l t...@localhost Test is a local account and a member of the local admin group. I am using the following: Windows 2003 Server St

Re: The C locale

2009-09-22 Thread Thorsten Kampe
* Lapo Luchini (Tue, 22 Sep 2009 18:26:32 +0200) > But cmd.exe isn't even capable of printing the Euro sign (no cygwin > involved, I mean the plain Windows Prompt), I guess there's no hope to > ever seeing in there anything but a very limited output... (which > surprises me a bit: Euro sign is pres

Re: Permission denied (publickey,password,keyboard-interactive).

2009-09-22 Thread Dave Korn
Dave M wrote: > Hi! > > I am following this: > http://pigtail.net/LRP/printsrv/cygwin-sshd.html All but the part about not asking questions here if their non-standard instructions don't work for you! Heh, moving swiftly along there ... > And I am to the part where I am testing ssh with th

Re: Permission denied (publickey,password,keyboard-interactive).

2009-09-22 Thread Dave Korn
{ Cc'ing the list back in. ] Dave M wrote: > Dave, > Where are the standard instructions? > Dave M Ah, now there's a question that's entirely on-topic for the list! The standard instructions for any cygwin package are in /usr/share/doc/; but these are just the standard docs that come with wh

Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread ︶ㄣ無名氏
I have try the command: $ mount -f -o binary,user 'f:\cygwin_1.7\usr\bin\' /usr/bin mount: /usr/bin: Operation not permitted The -f option does not work well. I have alse add this line to fstab: ntfs f:\cygwin_1.7\usr\bin\ /usr/bin binary,user 0 0 It fails, too. On Wed, Sep 23, 2009 at 00:34, Ch

Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread Christopher Faylor
On Wed, Sep 23, 2009 at 11:09:06AM +0800, "???" wrote: >I have try the command: >$ mount -f -o binary,user 'f:\cygwin_1.7\usr\bin\' /usr/bin >mount: /usr/bin: Operation not permitted > >The -f option does not work well. You really do need the -o override option that I mentioned. See:

Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread ︶ㄣ無名氏
$ mount -f -o override 'f:\cygwin_1.7\usr\bin\' /usr/bin mount: /usr/bin: Operation not permitted I have used the `override' option, but the error occurs again. On Wed, Sep 23, 2009 at 11:21, Christopher Faylor wrote: > On Wed, Sep 23, 2009 at 11:09:06AM +0800, "???" wrote: >>I hav

Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread Christopher Faylor
On Wed, Sep 23, 2009 at 11:36:13AM +0800, "???" wrote: >$ mount -f -o override 'f:\cygwin_1.7\usr\bin\' /usr/bin >mount: /usr/bin: Operation not permitted > > >I have used the `override' option, but the error occurs again. Sorry for the misinformation. You need to add an entry for /us

Re: how to let cygwin does not mount /bin /usr/bin automaticlly?

2009-09-22 Thread ︶ㄣ無名氏
> The entry that you used in your previous mail was not correctly formatted. > > It should be something like: > > f:/cygwin_1.7/usr/bin /usr/bin ntfs binary 0 0 That is great. Thanks for your patient. I have another question. Can the first field of fstab use relative path. I expect to make the cyg

Re: The C locale

2009-09-22 Thread Lapo Luchini
Thorsten Kampe wrote: > * Lapo Luchini (Tue, 22 Sep 2009 18:26:32 +0200) >> But cmd.exe isn't even capable of printing the Euro sign (no cygwin >> involved, I mean the plain Windows Prompt), I guess there's no hope to >> ever seeing in there anything but a very limited output... (which >> surprises

Re: Write access for BUILTIN\USERS - cygwin privilege escalation vulnerability for Windows 2008 default installation

2009-09-22 Thread Andrew McGill
On Monday 21 September 2009 18:19:35 Dave Korn wrote: > Andrew McGill wrote: > > I can pwn the box from IIS by writing content to > > these files -- and not much creativity is needed to think of many more: > > Waittaminnit, are you saying IIS by default lets you write any file you > like anyw