Re: zip, unzip doesn't support locale settings

2009-05-13 Thread Lenik
On 2009-5-13 11:23, Christopher Faylor wrote: On Tue, May 12, 2009 at 10:58:00PM +0800, Lenik wrote: (This mail is encoded in utf-8) What is the point of three separate messages when you've already made the point in another thread? cgf Sorry, I think individual package maintainers may noti

Re: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8

2009-05-13 Thread Lenik
http://cygwin.com/ml/cygwin/2009-05/msg00245.html? I found this web page doesn't display utf-8 characters correctly. BTW, I'm using thunderbird as news reader. Lenik -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Docu

Re: Cygwin 1.7 new install /bin permissions

2009-05-13 Thread Corinna Vinschen
On May 12 21:08, Karl M wrote: > > Hi All... > > On a new 1.7 install I noticed > > $ find /bin -perm 644 -print > /bin/d2u.exe > /bin/dos2unix.exe > /bin/gawk-3.1.6.exe > /bin/perlthanks5.10.0 > /bin/pgawk-3.1.6.exe > /bin/pstruct5.10.0 > /bin/s2p5.10.0 > /bin/u2d.exe > /bin/unix2dos.exe > /b

Installing Cygwin without using setup

2009-05-13 Thread breaks
Hi. I was wondering would it possble to install cygwin without using the setup included with the download. I'd like to to just put it on the file system and then add it to a local path so that I can control when I use it rather than installing it and it being on my complete windows OS. I know it

Re: Cygwin programs doesn't support non-ASCII filenames

2009-05-13 Thread Corinna Vinschen
On May 9 23:12, Lenik wrote: > This is a new test don't use cygpath: > C:\Profiles\Shecti> set LANG=& bash -c "cat ??" > cat: ??: No such file or directory > > C:\Profiles\Shecti> set LANG=zh_CN.GB2312& bash -c "cat ??" > cat: ??: No such file or directory > > C

Re: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8

2009-05-13 Thread Corinna Vinschen
On May 12 19:37, Corinna Vinschen wrote: > On May 13 02:29, IWAMURO Motonori wrote: > > I propose that the filename encoding in C locale uses UTF-8 instead of > > SO/UTF-8. > > > > There are three reasons: > > That's an interesting thought. Do you have a patch and, if so, did you > try it? Doe

Re: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8

2009-05-13 Thread Matthias Andree
Am 13.05.2009, 16:29 Uhr, schrieb Corinna Vinschen : On May 12 19:37, Corinna Vinschen wrote: On May 13 02:29, IWAMURO Motonori wrote: > I propose that the filename encoding in C locale uses UTF-8 instead of SO/UTF-8. > > There are three reasons: That's an interesting thought. Do you hav

Re: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8

2009-05-13 Thread Andy Koppe
> - why do you need to touch the filename at all? I haven't read all of it. Is > the UTF-16 on disk and we need to work around UTF-16 being intractable as C > string? Yes. If you simply treated each UTF-16 symbol as two chars, you'd get unintended NULs and slashes. For starters, the upper halves o

insert-directory function in Gnu emacs returns nil

2009-05-13 Thread Marc Girod
Hello, Symptom: systematically empty dired in Gnu emacs, no error message. I first posted as a followup to an old message reporting the same symptom, but this only confused the matters, as the cause was then probably different: http://www.nabble.com/linked-dll-data-write-copy-failed-errors-to13

Re: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8

2009-05-13 Thread Corinna Vinschen
On May 13 15:54, Andy Koppe wrote: > > - why do you need to touch the filename at all? I haven't read all of it. Is > > the UTF-16 on disk and we need to work around UTF-16 being intractable as C > > string? > > Yes. If you simply treated each UTF-16 symbol as two chars, you'd get > unintended NUL

Re: insert-directory function in Gnu emacs returns nil

2009-05-13 Thread Ken Brown
On 5/13/2009 10:54 AM, Marc Girod wrote: Gnu emacs is 21.2.1, and cygwin 1.7. I doubt if anyone on the cygwin list is going to be able to help you debug this. But you might try a more recent version of emacs to see if you still have the problem. I've built emacs 23 (still in pre-release te

RE: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8

2009-05-13 Thread Jason Pyeron
Corinna Vinschen wrote on Wednesday, May 13, 2009 10:30: > On May 12 19:37, Corinna Vinschen wrote: >> On May 13 02:29, IWAMURO Motonori wrote: >>> I propose that the filename encoding in C locale uses UTF-8 instead >>> of SO/UTF-8. >>> >>> There are three reasons: >> >> That's an interesting th

Re: insert-directory function in Gnu emacs returns nil

2009-05-13 Thread Marc Girod
Ken Brown-6 wrote: > > I doubt if anyone on the cygwin list is going to be able to help you > debug this. > Unless the problem is in fact with the 1.7 root... I have 1.5 installed as c:/cygwin and 1.7 as c:/cygwin2. Now running 1.7: emacs> df /tmp Filesystem 1K-blocks Used Ava

Re: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8

2009-05-13 Thread Corinna Vinschen
On May 13 11:41, Jason Pyeron wrote: > Corinna Vinschen wrote on Wednesday, May 13, 2009 10:30: > > On May 12 19:37, Corinna Vinschen wrote: > >> On May 13 02:29, IWAMURO Motonori wrote: > >>> I propose that the filename encoding in C locale uses UTF-8 instead > >>> of SO/UTF-8. > >>> > >>> There

[ANNOUNCEMENT] [1.7] Updated setup-1.7.exe (2.625)

2009-05-13 Thread Corinna Vinschen
I just uploaded another new setup-1.7.exe (2.625) to http://cygwin.com/setup-1.7.exe, which contains the following changes and bug fixes: - Fix a bug which resulted in the inability to access files on systems which have case-sensitivity switched on. - Make sure there's always a /usr/bin and a /

Re: insert-directory function in Gnu emacs returns nil

2009-05-13 Thread Marc Girod
Marc Girod wrote: > > So, ls finds something under the 1.5 root, but the 1.7 ones seems empty. > Sorry... now I got one case of success (with call-process, not dired), but this means that my error is not systematic, only very frequent. And that it may work with the 1.7 root as well... (call-pr

terminfo0-5.5_20061104-2 needed a reinstall for me. Also, maybe it could be a link farm?

2009-05-13 Thread Peter Cordes
I ran into a problem with terminfo0-5.5_20061104-2 I had to re-install it, because /usr/share/terminfo/x didn't exist after a recent upgrade, even though the package manager listed it as installed. terminfo-5.7_20090228-1 is also installed. I don't know what went wrong, and honestly, I don't h

Re: insert-directory function in Gnu emacs returns nil

2009-05-13 Thread Ken Brown
On 5/13/2009 11:45 AM, Marc Girod wrote: Unless the problem is in fact with the 1.7 root... I have 1.5 installed as c:/cygwin and 1.7 as c:/cygwin2. I have a similar setup. I just tried your insert-dired examples in *scratch*, and they work (in cygwin-1.7): (insert-directory "/home/kbrown"

Re: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8

2009-05-13 Thread IWAMURO Motonori
Hi. My idea is as follows: 1) separate mbtowc/wctomb function entries to library usage and system usage. (__mbtowc/__wctomb & __sys_mbtowc/__sys_wctomb) 2) If call setlocale(LC_CTYPE) by locale != "C", then lib == sys. 3) If call setlocale(LC_CTYPE) by locale == "C", then sys is set by LC_ALL/

Re: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8

2009-05-13 Thread Andy Koppe
> Not necessarily better, but here is a chart: > > Sys:  App:    function expects/returns > NULL: NULL:   UTF-8 > C/UA: NULL:   UTF-8 > NULL: C/UA:   UTF-8 > C/UA: C/UA:   UTF-8 > SPEC: NULL:   System Locale > SPEC: C/UA:   UTF-8 > NULL  SPEC:   Application Locale > C/UA: SPEC:   Application Locale

Re: Installing Cygwin without using setup

2009-05-13 Thread Larry Hall (Cygwin)
breaks wrote: Hi. I was wondering would it possble to install cygwin without using the setup included with the download. I'd like to to just put it on the file system and then add it to a local path so that I can control when I use it rather than installing it and it being on my complete windows

Re: Installing Cygwin without using setup

2009-05-13 Thread Christopher Faylor
On Wed, May 13, 2009 at 03:20:11AM -0700, breaks wrote: > >Hi. >I was wondering would it possble to install cygwin without using the setup >included with the download. >I'd like to to just put it on the file system and then add it to a local >path so that I can control when I use it rather than ins

Re: Installing Cygwin without using setup

2009-05-13 Thread Gary Johnson
On 2009-05-13, Christopher Faylor wrote: > On Wed, May 13, 2009 at 03:20:11AM -0700, breaks wrote: > > > >Hi. > >I was wondering would it possble to install cygwin without using the setup > >included with the download. > >I'd like to to just put it on the file system and then add it to a local > >p

Re: Installing Cygwin without using setup

2009-05-13 Thread Andy Koppe
2009/5/13 Gary Johnson : >> Cygwin installs to one directory, usually c:\cygwin. >> You can choose to use it or not.  I really don't understand the >> question.  Sorry. > > Doesn't setup.exe add entries to the Windows registry as well? Only a few for Cygwin's own use, e.g. for the mount points (an

Re: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8

2009-05-13 Thread Corinna Vinschen
On May 14 01:03, IWAMURO Motonori wrote: > Hi. > > My idea is as follows: > > 1) separate mbtowc/wctomb function entries to library usage and > system usage. (__mbtowc/__wctomb & __sys_mbtowc/__sys_wctomb) > > 2) If call setlocale(LC_CTYPE) by locale != "C", then lib == sys. > > 3) If call set

emacs 23 (was: insert-directory function in Gnu emacs returns nil)

2009-05-13 Thread Marc Girod
Ken Brown-6 wrote: > > (insert-directory "/tmp" "-la") > total 657 > drwxrwxrwt 1 kbrown-admin None 0 May 13 11:57 . > drwxr-xr-x 1 kbrown-admin None 0 Apr 14 11:07 .. > -r--r--r-- 1 kbrown None 11 May 13 11:02 .X0-lock > In fact, even when it produces something, it is not c

Re: Installing Cygwin without using setup

2009-05-13 Thread Christopher Faylor
On Wed, May 13, 2009 at 05:40:21PM +0100, Andy Koppe wrote: >2009/5/13 Gary Johnson : >>> Cygwin installs to one directory, usually c:\cygwin. >>> You can choose to use it or not. ??I really don't understand the >>> question. ??Sorry. >> >> Doesn't setup.exe add entries to the Windows registry as w

Re: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8

2009-05-13 Thread IWAMURO Motonori
2009/5/14 Corinna Vinschen : > That's basically how my patch works. Sorry, I can't parse this sentence because of my poor English parser... Do you be writing the patch for this problem? > Btw., if you plan to write more and bigger patches for Cygwin, it would > be necessary to sign a copyright as

Re: emacs 23

2009-05-13 Thread Ken Brown
On 5/13/2009 1:04 PM, Marc Girod wrote: I downloaded and extracted everything, checked that I have all the prerequisites in the setup.hint files. Now, I just dump the files where they are expected? Yes. Or just use tar -C / ... on the original tarballs. Then go to /etc/postinstall and run

Re: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8

2009-05-13 Thread Corinna Vinschen
On May 14 02:25, IWAMURO Motonori wrote: > 2009/5/14 Corinna Vinschen : > > That's basically how my patch works. > > Sorry, I can't parse this sentence because of my poor English parser... No worries. > Do you be writing the patch for this problem? I already wrote that patch, see http://cygwin.

Re: WMIC

2009-05-13 Thread Christian Franke
Dave Korn wrote: Bruno Galindro da Costa wrote: Christian, It Works perfectly for both! Can you explain why that commands works and not only "wmic cpu list full"? The wmic.exe file imports console functions like SetConsoleMode() and SetConsoleScreenBufferSize() from kernel32.

Re: emacs 23

2009-05-13 Thread Marc Girod
Ken Brown-6 wrote: > > Then go to /etc/postinstall and run the postinstall scripts emacs.sh and > emacs-X11.sh. (This is for the alternatives setup.) > Two more requirements: - desktop-file-utils - shared-mime-info I get: postinstall> ./emacs.sh ./emacs.sh: line 9: /usr/bin/update-desktop-d

Re: emacs 23

2009-05-13 Thread Marc Girod
Marc Girod wrote: > > Now, there are some problems with the fonts... > > I have some holes, and otherwise hardly readable text... > OK... Self-inflicted wound. I removed my -fn and the result is much better! Fontset: -*-*-*-*-*-*-*-*-*-*-*-*-fontset-default Fontset: -*-fixed-medium-r-normal-*

Re: popup consoles on Windows 7

2009-05-13 Thread Andy Koppe
2009/5/8 Corinna Vinschen: > Unfortunately I got the reply that this issue cannot be addressed this > time but MSFT will consider addressing the issue in a future version of > Windows. Forgot to say: thanks for the update. > This is really bad. Yep. And the workaround with ShowWindowAsync() isn'

Re: emacs 23

2009-05-13 Thread Ken Brown
On 5/13/2009 2:25 PM, Marc Girod wrote: Ken Brown-6 wrote: Then go to /etc/postinstall and run the postinstall scripts emacs.sh and emacs-X11.sh. (This is for the alternatives setup.) Two more requirements: - desktop-file-utils - shared-mime-info You don't really need these. ./emacs.sh:

Re: emacs 23

2009-05-13 Thread Ken Brown
On 5/13/2009 2:34 PM, Ken Brown wrote: On 5/13/2009 2:25 PM, Marc Girod wrote: Ken Brown-6 wrote: Then go to /etc/postinstall and run the postinstall scripts emacs.sh and emacs-X11.sh. (This is for the alternatives setup.) Two more requirements: - desktop-file-utils - shared-mime-info Yo

Re: [Fwd: [1.7] wcwidth failing configure tests]

2009-05-13 Thread Andy Koppe
2009/5/12 Corinna Vinschen: >> Trouble is, there's the thorny issue of the "CJK Ambiguous Width" >> category of characters, which consists of things like Greek and >> Cyrillic letters as well as line drawing symbols. Those have a width >> of 1 in Western use, yet with CJK fonts they have a width of

Re: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8

2009-05-13 Thread IWAMURO Motonori
2009/5/14 Corinna Vinschen : > I already wrote that patch, see > http://cygwin.com/ml/cygwin-cvs/2009-q2/msg00066.html > It seems to do what you are proposing. I read it and built cygwin1.dll. It seems to work correctly. Should the following part not be modified? winsup/cygwin/fhandler_console.c

Re: [Fwd: [1.7] wcwidth failing configure tests]

2009-05-13 Thread Corinna Vinschen
On May 13 20:04, Andy Koppe wrote: > 2009/5/12 Corinna Vinschen: > >> Trouble is, there's the thorny issue of the "CJK Ambiguous Width" > >> category of characters, which consists of things like Greek and > >> Cyrillic letters as well as line drawing symbols. Those have a width > >> of 1 in Western

Re: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8

2009-05-13 Thread Corinna Vinschen
On May 14 04:13, IWAMURO Motonori wrote: > 2009/5/14 Corinna Vinschen : > > I already wrote that patch, see > > http://cygwin.com/ml/cygwin-cvs/2009-q2/msg00066.html > > It seems to do what you are proposing. > > I read it and built cygwin1.dll. It seems to work correctly. > > Should the followin

Re: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8

2009-05-13 Thread Corinna Vinschen
On May 13 21:46, Corinna Vinschen wrote: > On May 14 04:13, IWAMURO Motonori wrote: > > 2009/5/14 Corinna Vinschen : > > > I already wrote that patch, see > > > http://cygwin.com/ml/cygwin-cvs/2009-q2/msg00066.html > > > It seems to do what you are proposing. > > > > I read it and built cygwin1.dl

Re: WMIC

2009-05-13 Thread Gary Johnson
On 2009-05-13, Christian Franke wrote: > Dave Korn wrote: > >Bruno Galindro da Costa wrote: > > > >>Christian, > >> > >> It Works perfectly for both! Can you explain why that commands > >>works and not only "wmic cpu list full"? > >> > > > > > > The wmic.exe file imports console function

Re: [Fwd: [1.7] wcwidth failing configure tests]

2009-05-13 Thread Andy Koppe
> How should that work?  The first half of the surrogate pair has not > enough information to decide that.  For instance, take the ranges > 0x10A01, 0x10A03 }, { 0x10A05, 0x10A06 }.  The information about the low > 10 bits of the Unicode value is in the second half of the pair.  From > the first ha

Cygwin 1.7, Win 2008 and rebase

2009-05-13 Thread Darren Syzling
I've just installed cygwin 1.7 for use under Winn 2008 - the latest version of 1.7 setup released today. I've read the threads on rebase issues with Vista but so far none of the suggestions help with my git-svn issue. After installation I ran through: ash /usr/bin/rebaseall /usr/bin/peflagsall

Re: [1.7] Proposal: the filename encoding in C locale uses UTF-8 instead of SO/UTF-8

2009-05-13 Thread Matthias Andree
Am 13.05.2009, 17:17 Uhr, schrieb Corinna Vinschen : I followed the suggestion to use UTF-8 for internal conversions when the locale is set to "C". This will also be used as default conversion when converting the Windows environment from UTF-16 to multibyte, unless the environment contains a

Re: Cygwin 1.7, Win 2008 and rebase

2009-05-13 Thread Lenik
On 2009-5-14 5:11, Darren Syzling wrote: I've just installed cygwin 1.7 for use under Winn 2008 - the latest version of 1.7 setup released today. I've read the threads on rebase issues with Vista but so far none of the suggestions help with my git-svn issue. After installation I ran through: ash

Re: Cygwin 1.7, Win 2008 and rebase

2009-05-13 Thread Lenik
On 2009-5-14 8:13, Lenik wrote: On 2009-5-14 5:11, Darren Syzling wrote: I've just installed cygwin 1.7 for use under Winn 2008 - the latest version of 1.7 setup released today. I've read the threads on rebase issues with Vista but so far none of the suggestions help with my git-svn issue. After

Question of the necessity of rebaseall

2009-05-13 Thread Lenik
Imagebase in PE header is something a bit of optional, that means if two dlls with same imagebase, the OS kernel will automaticly relocate one of them, to put them in different virtual spaces. So, rebase should be a utility for optimizing the overall start-up speed, to reduce avoidable relocati

Strange behavior of cygwin setup preferences

2009-05-13 Thread Lenik
When I have a fresh new installed OS, say XP, and the first time to install cygwin using cygwin setup utility, I can see a lot of components. After the first installation, however it's completed installed or be canceled, Then I launch the setup again, most components are gone. It looks like t

rsync with cygwin 1.7 doesn't work

2009-05-13 Thread andrew
I upgraded to version 1.7 as I had issues with rsync not being able to transfer all my files due to "File name too long (91)" I ran this command in Win2k3, which worked in the last version : rsync -rav --exclude 'temp' --exclude 'System*' --exclude 'Program Files' --exclude 'users' -e 'ssh -l a

Re: Question of the necessity of rebaseall

2009-05-13 Thread Larry Hall (Cygwin)
Lenik wrote: Imagebase in PE header is something a bit of optional, that means if two dlls with same imagebase, the OS kernel will automaticly relocate one of them, to put them in different virtual spaces. So, rebase should be a utility for optimizing the overall start-up speed, to reduce avoid

Re: Strange behavior of cygwin setup preferences

2009-05-13 Thread Larry Hall (Cygwin)
Lenik wrote: When I have a fresh new installed OS, say XP, and the first time to install cygwin using cygwin setup utility, I can see a lot of components. After the first installation, however it's completed installed or be canceled, Then I launch the setup again, most components are gone. I

Re: Question of the necessity of rebaseall

2009-05-13 Thread Lenik
On 2009-5-14 8:55, Larry Hall (Cygwin) wrote: Lenik wrote: Imagebase in PE header is something a bit of optional, that means if two dlls with same imagebase, the OS kernel will automaticly relocate one of them, to put them in different virtual spaces. So, rebase should be a utility for optimizin

Re: Question of the necessity of rebaseall

2009-05-13 Thread Larry Hall (Cygwin)
Lenik wrote: On 2009-5-14 8:55, Larry Hall (Cygwin) wrote: Lenik wrote: Imagebase in PE header is something a bit of optional, that means if two dlls with same imagebase, the OS kernel will automaticly relocate one of them, to put them in different virtual spaces. So, rebase should be a utility

Re: Question of the necessity of rebaseall

2009-05-13 Thread Lenik
On 2009-5-14 9:34, Larry Hall (Cygwin) wrote: Lenik wrote: On 2009-5-14 8:55, Larry Hall (Cygwin) wrote: Lenik wrote: Imagebase in PE header is something a bit of optional, that means if two dlls with same imagebase, the OS kernel will automaticly relocate one of them, to put them in different

Re: Question of the necessity of rebaseall

2009-05-13 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Lenik on 5/13/2009 7:49 PM: >> You have it backwards. Forking doesn't break the relocation. Relocation >> breaks forking. cygwin1.dll needs to have a very special memory layout to >> implement the fork semantics in Win32. If this memory la

Re: Question of the necessity of rebaseall

2009-05-13 Thread Andy Koppe
> Remember, the semantics of fork is that BOTH processes (the parent and > child) must see the SAME memory, and that includes all shared libraries > being mapped at the SAME location.  But since Windows doesn't provide a > native fork, the child must remap everything that the parent had, and hope >

Using rand_r

2009-05-13 Thread Nicholas Sherlock
Hey everyone, I'm trying to use the function rand_r with gcc-4 in Cygwin 1.7, all my packages are up to date. It's supposed to be defined in stdlib.h, and I can see it there. But if I compile a program which uses it, I get: warning: implicit declaration of function 'rand_r'. The reason seems

Re: Using rand_r

2009-05-13 Thread Nicholas Sherlock
David Billinghurst wrote: > Nicholas Sherlock wrote: >> Hey everyone, >> >> I'm trying to use the function rand_r with gcc-4 in Cygwin 1.7, all my packages are up to date. It's supposed to be defined in stdlib.h, and I can see it there. But if I compile a program which uses it, I get: >> >> war

Re: Question of the necessity of rebaseall

2009-05-13 Thread Larry Hall (Cygwin)
Andy Koppe wrote: Remember, the semantics of fork is that BOTH processes (the parent and child) must see the SAME memory, and that includes all shared libraries being mapped at the SAME location. But since Windows doesn't provide a native fork, the child must remap everything that the parent had

What is Cygwin DLL & emulation Layer ?

2009-05-13 Thread Neeraj Sahu
Hi All, I am newbie to Cygwin world. I have very basic doubt regarding cygwin. My question is 1.) Why you have designed cygwin as DLL ? What's the advantage ? 2.) What is Cygwin emulation layer ? 3.) How Cygwin work internally. Please explain in bri