Re: Please fix /etc/postinstall/gnupg.sh

2011-02-27 Thread Oleksandr Gavenko
On 2011-02-27 14:13, Oleksandr Gavenko wrote: After executing postinstall script for latest gnupg: $ cygcheck -f `which gpg` gnupg-1.4.9-2 /usr/share/info/dir updated with entry: * gpg: (gpg). OpenPGP encryption and signing tool (v1). But must be: * gpg: (gnupg1). OpenPGP encryption

Re: [ANNOUNCEMENT] Updated: cppcheck-1.47-1

2011-02-10 Thread Oleksandr Gavenko
On 09.02.2011 13:50, Chris Sutcliffe wrote: Version 1.47-1 of cppcheck has been uploaded, following the upstream release. For a list of changes see: http://sourceforge.net/news/?group_id=195752id=295096 This is news for version 1.46. For 1.47 is

setup.exe now fast!

2010-12-26 Thread Oleksandr Gavenko
I recently found that new 'setup.exe' works much better. Before new changes 'setup.exe' require up to 10 minute to make list of available packages if they stored on Samba share in intranet and some quickly if they stored locally on hard drive. As I understand this change introduced in version

Where is 'getconf' utility?

2010-12-24 Thread Oleksandr Gavenko
I can not found 'getconf' utility in Cygwin. http://cygwin.com/cgi-bin2/package-grep.cgi?grep=getconf I search that same reported in 2003 and found some article where people have portability issue because utility is missing, like:

Re: [ANNOUNCEMENT] Updated: mintty-0.9.3-1

2010-12-08 Thread Oleksandr Gavenko
On 04.12.2010 23:47, Andy Koppe wrote: - Disabled flow control with ^S and ^Q by default, to stop unwary users from accidentally hanging their terminal and to make those keys available for other functions. To re-enable, use 'stty stop ^S start ^Q'. So I need update ~/.bashrc? Can this done

Re: GNU Make and command utility error with 100% cpu load.

2010-11-09 Thread Oleksandr Gavenko
On 08.11.2010 22:50, Oleksandr Gavenko wrote: Consider such simple Makefile: var := $(shell command -v mv) all: When I call: $ make clean Sorry I miss-type: $ make I got output like 5 [main] make 768! _pinfo::dup_proc_pipe: DuplicateHandle

GNU Make and command utility error with 100% cpu load.

2010-11-08 Thread Oleksandr Gavenko
Consider such simple Makefile: var := $(shell command -v mv) all: When I call: $ make clean I got output like 5 [main] make 768! _pinfo::dup_proc_pipe: DuplicateHandle failed, pid 768, hProcess 0x6B5, wr_proc_pipe 0x750, Win32 error 6

Re: [ANNOUNCEMENT] Updated: nano-2.2.5-1

2010-11-05 Thread Oleksandr Gavenko
On 04.11.2010 16:29, Lapo Luchini wrote: Version 2.2.5-1 of nano has been uploaded. nano is a text editor designed as a clone of pico, but rewritten from scratch to be faster and smaller while having greater functionality. You can find information about new features here:

Why mc start without subshell by default?

2010-11-03 Thread Oleksandr Gavenko
I can turn on subshell by: $ mc -U This is useful by default or I miss something? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info:

Re: R: Why mc start without subshell by default?

2010-11-03 Thread Oleksandr Gavenko
On 03.11.2010 11:14, Marco Atzeri wrote: --- Mer 3/11/10, Oleksandr Gavenko ha scritto: I can turn on subshell by: $ mc -U This is useful by default or I miss something? It is useful but there is one problem on cygwin. When you close mc the subshell will not exit, so you will finish

Re: modification time disorder: touch-related?

2010-10-29 Thread Oleksandr Gavenko
On 28.10.2010 20:10, Robert McDougall wrote: In running Make, I find targets being remade that shouldn't have to be remade; being considered younger than the prerequisites from which they've just been made. It seems to happen especially with prerequisites created by `touch`: e.g.: $ cat

Re: getting 'clear' to work in Emacs shell

2010-10-19 Thread Oleksandr Gavenko
On 18.10.2010 16:53, Jeff Rancier wrote: GNU Emacs 21.3.1 (i386-msvc-nt5.1.2600) of 2003-03-27 on buffy GNU bash, version 3.2.51(24)-release (i686-pc-cygwin) CYGWIN_NT-5.1 1.7.7(0.230/5/3) 2010-08-31 09:58 Microsoft Windows XP Pro - Version 2002, SP3 The 'clear' work's in a Cygwin Bash

Re: getting 'clear' to work in Emacs shell

2010-10-19 Thread Oleksandr Gavenko
On 19.10.2010 11:55, Oleksandr Gavenko wrote: shell-mode does not understand terminal ESC sequences. For example there exist special functions: ansi-color-for-comint-mode-on ansi-color-for-comint-mode-off I want say that some useful terminal ESC sequences Emacs shell-mode can handle

Re: Sending signals to a subprocess

2010-10-18 Thread Oleksandr Gavenko
On 16.10.2010 20:17, Ken Brown wrote: I could use some help fixing a longstanding bug in the Cygwin build of emacs, in which emacs is unable to send signals to subprocesses. This off top but I use native Emacs and have annoying bug: in C-x shell if I start cygwin app it can not be broken by

Re: Sending signals to a subprocess

2010-10-18 Thread Oleksandr Gavenko
On 18.10.2010 15:36, Ken Brown wrote: On 10/18/2010 4:46 AM, Oleksandr Gavenko wrote: On 16.10.2010 20:17, Ken Brown wrote: I could use some help fixing a longstanding bug in the Cygwin build of emacs, in which emacs is unable to send signals to subprocesses. This off top but I use native

CYGWIN=noglob remove double quotes from args.

2010-09-30 Thread Oleksandr Gavenko
As I understand docs if I set CYGWIN=noglob then command line arguments passed to Cygwin app WITHOUT changes. I use native Emacs build so worry about stop Cygwin damage passed arguments. And seems this is not true. With CYGWIN=noglob all double quotes removed from args! Originally I discaver

Re: where was mention of what creates NUL files?

2010-09-20 Thread Oleksandr Gavenko
On 17.09.2010 20:12, Daniel Barclay wrote: Does anyone recall a mention of what in CygWin (or possibly Emacs) creates files with a simple name of NUL? I also use native Emacs and after some operation I got file with name NUL. I have a lot NUL files in many dirs, which can be removed only from

Re: [ANNOUNCEMENT] Testing: mintty-0.9b1-1

2010-09-20 Thread Oleksandr Gavenko
On 18.09.2010 13:35, Andy Koppe wrote: CHANGES Colours: - Added ability to set the 16 ANSI colours in the config file (or on the command line via the -o option), like so: 'Blue=0,0,255' or 'BoldGreen=128,255,128'. The manual has all the colour names. This is very useful. Thanks. -- Problem

LC_ALL=ru_RU.cp1251 ls -l encoding problem.

2010-09-05 Thread Oleksandr Gavenko
As you can see user/group always printed in UTF-8 and discard LC_ALL=cp1251. $ LC_ALL=ru_RU.cp1251 mintty mintty ls English Русское mintty ls -l итого 0 drwx--+ 1 Администраторы Отсутствует 0 сен 5 21:06 English drwx--+ 1 sasha

Re: simulating console input

2010-09-03 Thread Oleksandr Gavenko
On 03.09.2010 10:53, Peter Münster wrote: So my questions are: - Is it possible to write such a program: ConsoleKeypressSimulator.exe ? Try http://www.autohotkey.com/ Or try VBScript/JScript: $ cat command.js var process = WScript.CreateObject(WScript.Shell);

How 'exec 1-; exec 2-' work?

2010-09-03 Thread Oleksandr Gavenko
I develop gtk app under Windows and in order to run it I need start Cygwin X Windows. To start X Windows I use Makefile rule: .PHONY: cygwin-startx cygwin-startx: XWin -multiwindow But when I invoke this target in native GNU Emacs by M-x compile in *Compilation* buffer I see XWin

'test' utility behavior question.

2010-08-30 Thread Oleksandr Gavenko
$ /bin/test -d echo ok ok $ /bin/test -d '' echo ok || echo must_be_error must_be_error POSIX require argument for -d, so behavior implementation depend. I can not check another 'test' implementation now. For me get error is more convenient, because this not break this code if $dir not

Re: 'test' utility behavior question.

2010-08-30 Thread Oleksandr Gavenko
On 2010-08-30 20:31, Eric Blake wrote: On 08/30/2010 11:27 AM, Oleksandr Gavenko wrote: $ /bin/test -d echo ok ok $ /bin/test -d '' echo ok || echo must_be_error must_be_error Both of these results match POSIX. Remember, POSIX describes different behaviors for one argument than for two

Re: Bug tracker

2010-08-20 Thread Oleksandr Gavenko
On 19.08.2010 23:11, Eric Blake wrote: On 08/19/2010 01:59 PM, Jeremy Bopp wrote: Of course the quality of the defect tracker is directly related to the effort the maintainers put in to keep it relatively pruned and organized. Maybe that is too much to expect for most maintainers at this time.

/usr/licence dir from lilypond-2.12.4-1.tar.bz2?

2010-08-17 Thread Oleksandr Gavenko
$ ls /usr/license/ lilypond-doc From http://cygwin.com/setup.html: In your binary package include a directory /usr/share/doc/foo/ that includes any binary-relevant vendor documentation, such as ChangeLog's, copyright licence's, README's etc. May be in next packaging it's better place licence

Re: find on /proc/registry/HKEY_CLASSES_ROOT/CLSID report Bad address

2010-08-12 Thread Oleksandr Gavenko
On 12.08.2010 13:12, Corinna Vinschen wrote: On Aug 6 16:24, Oleksandr Gavenko wrote: $ find /proc/registry/HKEY_CLASSES_ROOT/CLSID -type f find: `/proc/registry/HKEY_CLASSES_ROOT/CLSID/CLSID': Bad address find: `/proc/registry/HKEY_CLASSES_ROOT/CLSID/{002F---C000-0046

Internal Server Error: http://cygwin.com/cgi-bin2/package-grep.cgi?grep=REGEX.

2010-08-06 Thread Oleksandr Gavenko
Internal Server Error occur on http://cygwin.com/cgi-bin2/package-grep.cgi?grep=REGEX from http://cygwin.com/packages/ -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info:

Re: Internal Server Error: http://cygwin.com/cgi-bin2/package-grep.cgi?grep=REGEX.

2010-08-06 Thread Oleksandr Gavenko
On 06.08.2010 10:54, Mark Geisert wrote: Oleksandr Gavenko writes: Internal Server Error occur on http://cygwin.com/cgi-bin2/package-grep.cgi?grep=REGEX from http://cygwin.com/packages/ WFM just now. Might have been a transient error of some kind? Just now error 500: Internal Server

find on /proc/registry/HKEY_CLASSES_ROOT/CLSID report Bad address

2010-08-06 Thread Oleksandr Gavenko
$ find /proc/registry/HKEY_CLASSES_ROOT/CLSID -type f find: `/proc/registry/HKEY_CLASSES_ROOT/CLSID/CLSID': Bad address find: `/proc/registry/HKEY_CLASSES_ROOT/CLSID/{002F---C000-0046}': Bad address find:

Re: Some key binding in Emacs not properly work in mintty.

2010-08-05 Thread Oleksandr Gavenko
On 04.08.2010 22:38, Gary wrote: Andy Koppe wrote: Yet there's no obvious reason why this shouldn't work in xterm and mintty. The Shift-Up keycode follows the same pattern as the ones for the other Shift-Arrow combinations. This suggests a configuration problem, or perhaps a terminfo issue.

Help with proftpd configuration for local Cygwin package repo or bug in setup.exe.

2010-08-03 Thread Oleksandr Gavenko
I run proftpd 1.3.0-19 on Debian Etch where I put by rsync Cygwin package mirror. When I run setup.exe: setup.exe --quiet-mode --only-site --site ftp://192.168.1.38/cygwin --packages emacs it stop on: Starting cygwin install, version 2.697 io_stream_cygfile:

Some key binding in Emacs not properly work in mintty.

2010-08-01 Thread Oleksandr Gavenko
Selection by Ctrl-Left/Right/Down work properly. But for Ctrl-Up Emacs say: select is undefined Also I have trouble with C-backspace. Emacs think that I press undo. I use GNU Emacs 23.1.1 (i686-pc-cygwin) of 2009-07-30 with CYGWIN_NT-5.1 1.7.1(0.218/5/3) 2009-12-07. All other keys that I

Unknown option 'BackspaceSendsDEL' for mintty from emacs.README.

2010-08-01 Thread Oleksandr Gavenko
In Cygwin 1.7.1 installation in file /usr/share/doc/Cygwin/emacs.README placed tips: - mintty: Put BackspaceSendsDEL=1 in your .minttyrc file. Under man 1 mintty present only 'BackspaceSendsBS' option. What option correct and why I need set it? Also please fix emacs.README if it already

Re: LANG=ru_RU.cp1251, but binutils use UTF-8.

2010-06-29 Thread Oleksandr Gavenko
On 27.06.2010 10:49, Csaba Raduly wrote: On Mon, Jun 21, 2010 at 10:14 AM, Oleksandr Gavenko gave...@bifit.com.ua wrote: $ objdump --help | head -n 2 Рспользование: objdumpопции файл(С‹) Отображает информацию РёР· объекта файл(С

Re: LANG=ru_RU.cp1251, but binutils use UTF-8.

2010-06-29 Thread Oleksandr Gavenko
On 29.06.2010 15:52, Csaba Raduly wrote: On Tue, Jun 29, 2010 at 10:32 AM, Oleksandr Gavenko wrote: $ objdump --help | head -n 2 | hexl : d098 d181 d0bf d0be d0bb d18c d0b7 d0be (snipped) These bytes sure look like UTF-8. According to http://software.hixie.ch

Re: LANG=ru_RU.cp1251, but binutils use UTF-8.

2010-06-22 Thread Oleksandr Gavenko
On 22.06.2010 9:00, Andy Koppe wrote: On 21 June 2010 09:14, Oleksandr Gavenko wrote: I globally set LANG=ru_RU.cp1251 for Russian Windows. All command work as expected (from coreutils, svn, etc.). But objdump, nm, objcopy use UTF-8 instead recode to cp1251: $ objdump --help | head -n 2

LANG=ru_RU.cp1251, but binutils use UTF-8.

2010-06-21 Thread Oleksandr Gavenko
I globally set LANG=ru_RU.cp1251 for Russian Windows. All command work as expected (from coreutils, svn, etc.). But objdump, nm, objcopy use UTF-8 instead recode to cp1251: $ objdump --help | head -n 2 Рспользование: objdump опции файл(С‹) Отображает

svn don't remember my password.

2010-06-14 Thread Oleksandr Gavenko
$ svn help | head -n 2 usage: svn subcommand [options] [args] Subversion command-line client, version 1.6.9. svn: Write error: Broken pipe $ cd $OLDREPO $ HOME=/cygdrive/d/tmp svn ls Authentication realm: http://svn.int:80 Subversion Repositories Password for 'user': dir1/ dir2/ Under

Re: svn don't remember my password.

2010-06-14 Thread Oleksandr Gavenko
On 14.06.2010 12:22, Oleksandr Gavenko wrote: $ svn help | head -n 2 usage: svn subcommand [options] [args] Subversion command-line client, version 1.6.9. svn: Write error: Broken pipe $ cd $OLDREPO $ HOME=/cygdrive/d/tmp svn ls Authentication realm: http://svn.int:80 Subversion Repositories

Re: svn don't remember my password.

2010-06-14 Thread Oleksandr Gavenko
On 14.06.2010 12:35, Oleksandr Gavenko wrote: On 14.06.2010 12:22, Oleksandr Gavenko wrote: $ svn help | head -n 2 usage: svn subcommand [options] [args] Subversion command-line client, version 1.6.9. svn: Write error: Broken pipe $ cd $OLDREPO $ HOME=/cygdrive/d/tmp svn ls Authentication realm

Re: Question on setup.exe

2010-06-14 Thread Oleksandr Gavenko
On 14.06.2010 17:20, DEWI - N. Zacharias wrote: Hi there, assume I had a cygwin installation on one computer with the local package directory located in c:\mylocalpackage. Is it possible to copy this directory to a other computer and use the -L flag (local install) to install a identical

'cp' utility bug when dest-name.exe file exist.

2010-06-08 Thread Oleksandr Gavenko
$ touch my.exe $ touch some-file $ cp some-file my cp: cannot create regular file `my': File exists $ cp -f some-file my cp: cannot create regular file `my': File exists Same happen ever in cmd.exe so this is not 'bash' fault. -- Problem reports: http://cygwin.com/problems.html

Re: Why call-process removes '{' and '}' chars from arguments???

2010-06-03 Thread Oleksandr Gavenko
On 2010.06.03 0:39, Eli Zaretskii wrote: From: Oleksandr Gavenkogaven...@gmail.com Date: Wed, 02 Jun 2010 23:40:46 +0300 I use Emacs 23.2 under Windows. (call-process echo.exe nil (get-buffer *Messages*) nil --bla {rev} }}}xxx{1}xxx{2}xxx{{{ ) put in Message buffer

How you wrote wrapper around Cygwin scripts?

2010-06-03 Thread Oleksandr Gavenko
For example Mercurial VCS hg distributed as python script. To able invoke hg from cmd.exe (I some times use Far file manager and all time native GNU Emacs) I wrote wrapper: $ cat /bin/hg.bat @echo off python /bin/hg %* This script work fine except case then one of argument contain new line

Re: Why call-process removes '{' and '}' chars from arguments???

2010-06-03 Thread Oleksandr Gavenko
On 2010-06-03 18:04, Larry Hall (Cygwin) wrote: On 6/3/2010 3:46 AM, Oleksandr Gavenko wrote: On 2010.06.03 0:39, Eli Zaretskii wrote: From: Oleksandr Gavenkogaven...@gmail.com Date: Wed, 02 Jun 2010 23:40:46 +0300 I use Emacs 23.2 under Windows. (call-process echo.exe nil (get-buffer

Re: C-o in GNU MC and mintty/rxvt issue?

2010-05-13 Thread Oleksandr Gavenko
On 2010.05.12 22:26, d.sastre.med...@gmail.com wrote: On Wed, May 12, 2010 at 05:36:19PM +0300, Oleksandr Gavenko wrote: On 2010.05.12 16:11, Oleksandr Gavenko wrote: Recently I decide switch from Far/Total Commander to GNU MC. I use Cygwin 1.7.1. MC is look beauty with mintty but I have issue

mc --subshell after exit forget kill bash.

2010-05-13 Thread Oleksandr Gavenko
bash# ps PIDPPIDPGID WINPID TTY UIDSTIME COMMAND 4056 14056 4056? 1003 09:42:56 /usr/bin/mintty 5164056 516 19928 1003 09:42:56 /usr/bin/bash 664 516 6643048 1003 09:43:17 /usr/bin/ps bash# mc

rxvt blink

2010-05-12 Thread Oleksandr Gavenko
http://www.rxvt.org/faq.html -- 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

C-o in GNU MC and mintty/rxvt issue?

2010-05-12 Thread Oleksandr Gavenko
Recently I decide switch from Far/Total Commander to GNU MC. I use Cygwin 1.7.1. MC is look beauty with mintty but I have issue: 1. when press C-o to see ls output, it have irregular structure, not indented by column, like column width set to infinity: {{{ Application DataPrintHood

Re: rxvt blink

2010-05-12 Thread Oleksandr Gavenko
On 2010.05.12 16:03, Oleksandr Gavenko wrote: http://www.rxvt.org/faq.html Sorry for off topic, hate Thunderbird. rxvt can not blink text and cursor (( I switch to mintty. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation

Re: C-o in GNU MC and mintty/rxvt issue?

2010-05-12 Thread Oleksandr Gavenko
On 2010.05.12 16:11, Oleksandr Gavenko wrote: Recently I decide switch from Far/Total Commander to GNU MC. I use Cygwin 1.7.1. MC is look beauty with mintty but I have issue: 1. when press C-o to see ls output, it have irregular structure, not indented by column, like column width set

Re: rxvt : 1.5 vs. 1.7

2010-05-07 Thread Oleksandr Gavenko
On 2010.05.06 8:04, Andy Koppe wrote: Always on the lookout for ways to improve mintty: what mintty shortcomings or rxvt features make you prefer rxvt? My preferred ~/.Xdefaults ? Also rxvt present in MSYS. One tool for all OS. -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: cygpath from emacs

2010-05-07 Thread Oleksandr Gavenko
On 2010.05.05 21:24, Gary wrote: I often find myself running a piece of software from within emacs that expects, and spits out, Windows-style paths (C:\...). Handling sending it Windows paths based on the Cygwin ones is fine, I just use a script. Of course, the tool returning Windows paths is a

bash -i with installed and enabled bash_completion starting too slow

2010-05-07 Thread Oleksandr Gavenko
from sh I run: sh-3.2$ time bash -i -c echo real0m0.218s user0m0.062s sys 0m0.016s sh-3.2$ echo . /etc/bash_completion ~/.bashrc # enable completion sh-3.2$ time bash -i -c echo real0m2.657s user0m0.743s sys 0m1.308s I like completion. I wrote into ~/.Xdefaults

[BUG] Installer wrong report file locked by another process if not free space on disk.

2010-04-15 Thread Oleksandr Gavenko
Installer say that some files locked, but this files like .h so its particular impossible. Also installer suggest replace it after reboot. But really problem lies on zero space on disk. (I understand that when Firefox download manager report this!) So message must be appropriate: Not enough

Re: UTF-8 in ftp client.

2010-04-07 Thread Oleksandr Gavenko
On 2010.04.07 4:02, Charles Wilson wrote: On 4/6/2010 9:22 AM, Václav Haisman wrote: Install lftp or other FTP client using setup.exe. ...which is good advice. The other clients MAY support UTF-8 or some other explicit i18n/NLS, but the inetutils bare-bones ftp client doesn't, and won't.

UTF-8 in ftp client.

2010-04-06 Thread Oleksandr Gavenko
I use filezilla to host file server. As explain article: http://wiki.filezilla-project.org/Character_Set for multilang environment need use UTF-8. How can I force Cygwin ftp client use UTF-8? ftp ls 200 Port command successful 150 Opening data channel for directory list. drwxr-xr-x 1 ftp ftp

Re: UTF-8 in ftp client.

2010-04-06 Thread Oleksandr Gavenko
On 2010.04.06 12:50, Oleksandr Gavenko wrote: I use filezilla to host file server. As explain article: http://wiki.filezilla-project.org/Character_Set for multilang environment need use UTF-8. How can I force Cygwin ftp client use UTF-8? ftp ls 200 Port command successful 150 Opening data

Re: UTF-8 in ftp client.

2010-04-06 Thread Oleksandr Gavenko
On 2010.04.06 16:22, Václav Haisman wrote: On Tue, 06 Apr 2010 15:58:18 +0300, Oleksandr Gavenko wrote: On 2010.04.06 12:50, Oleksandr Gavenko wrote: I use filezilla to host file server. As explain article: http://wiki.filezilla-project.org/Character_Set for multilang environment need use

Re: Emacs info files

2010-03-31 Thread Oleksandr Gavenko
On 2010.03.31 10:21, Gary . wrote: I have a new cygwin installation on which I have also installed emacs. I have an older installation in which I also have emacs installed. On the newer install I don't appear to have any info pages for emacs, but do on the older one (I think, I can't actually

Re: [ANNOUNCEMENT] Updated: cygwin-1.7.2-1

2010-03-25 Thread Oleksandr Gavenko
On 2010.03.24 10:56, Corinna Vinschen wrote: Hi Cygwin friends and users, we're proud to present the next Cygwin release 1.7.2. This release contains some changes, some new functionality, and a good amount of bugfixes. Thanks for bugfix! -- Problem reports:

Re: Run cmd.exe with /c.

2010-03-23 Thread Oleksandr Gavenko
On 2010.03.23 9:26, Linda Walsh wrote: Also if you want to use comspec, use it with cygpath: $(cygpath $COMSPEC) /c dir I try add $(error $(cygpath d:/tmp)) and temp: echo $(cygpath d:/tmp) But it seems $(cygpath ) not expanded to Cygwin path. My solution use $(subst

__STRICT_ANSI__ with -std=c99

2010-03-22 Thread Oleksandr Gavenko
My code use strupr func which is defined in string.h. But with $ gcc -std=c99 -c -o grid.o grid.c I got grid.c:236: warning: implicit declaration of function 'strupr'. This is because with -std=c99 gcc define __STRICT_ANSI__: $ gcc -std=c99 -dM -E - /dev/null | grep __STRICT_ANSI__

Re: __STRICT_ANSI__ with -std=c99

2010-03-22 Thread Oleksandr Gavenko
On 2010.03.22 15:30, Tim Prince wrote: On 3/22/2010 6:03 AM, Oleksandr Gavenko wrote: Current workaround is undefine __STRICT_ANSI__: $ gcc -std=c99 -U__STRICT_ANSI__ -c -o grid.o grid.c Where is proper place to report issue? If you want c99 plus gcc extensions without warnings, how about

Re: __STRICT_ANSI__ with -std=c99

2010-03-22 Thread Oleksandr Gavenko
On 2010.03.22 15:34, Greg Chicares wrote: On 2010-03-22 13:03Z, Oleksandr Gavenko wrote: $ gcc -std=c99 -c -o grid.o grid.c [...] grid.c:236: warning: implicit declaration of function 'strupr'. I'd expect that warning, because C99 defines no strupr() function. Ok. But that the way

Run cmd.exe with /c.

2010-03-22 Thread Oleksandr Gavenko
I want execute .bat file. I think easy way to do this is invoke $COMSPEC to do that. Like this $(subst \,/,$(COMSPEC)) /c file.bat from Makefile. But cmd fail with error: bash# cat 1.bat @echo off echo xxx bash# cmd.exe /c 1.bat bash: /cygdrive/c/WINDOWS/system32/cmd.exe: Bad address I

<    1   2