[ANNOUNCEMENT] Updated: mintty-0.5.6-1

2009-12-28 Thread Andy Koppe
Mintty is a terminal emulator for Cygwin with a native Windows user interface and minimalist design. Among its features are Unicode support and a graphical options dialog. Its terminal emulation is largely compatible with xterm, but it does not require an X server. Mintty is based on code from PuTT

Re: gcc4[1.7] printf treats differently a string constant and a character array

2009-12-29 Thread Andy Koppe
n one particular charset, namely that of your editor. In that case you need to use wchar_t strings instead, for example: #include #include int main(void) { setlocale(LC_CTYPE, ""); wprintf(L"Øl\n"); } You also need to ensure that gcc's character set matches th

Re: gcc4[1.7] printf treats differently a string constant and a character array

2009-12-29 Thread Andy Koppe
bytes with > the 8th-bit set is specifically undefined in the C locale (whether that be > C.ASCII or C.UTF-8). I very much disagree with that. C.ASCII and C.UTF-8 are different locales from plain "C", and the whole point of the explicitly stated charset is to define the meaning

Re: [ANNOUNCEMENT] Updated: cygutils-1.4.2-1

2009-12-29 Thread Andy Koppe
2009/12/29 Charles Wilson: > TODO (call for patches): > > * Update lpr.cc and mkshortcut.c to use cygwin-1.7 cygwin_conv_path >  instead of deprecated cygwin_conv_to_win32_path. I'll have a go at mkshortcut. Andy -- Problem reports:

Re: gcc4[1.7] printf treats differently a string constant and a character array

2010-01-01 Thread Andy Koppe
ent. However, since that is a valid assumption on Linux and others, Cygwin might indeed be better off following their example. There's a discussion about that on cygwin-developers. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq

Re: Alt key not recognized as Meta in xterm

2010-01-01 Thread Andy Koppe
to a singlebyte charset, e.g. by setting 'LANG=en_US.ISO-8859-1'. Otherwise, the escape prefix is the way to go. Andy -- 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: Alt key not recognized as Meta in xterm

2010-01-01 Thread Andy Koppe
2010/1/1 Thomas Dickey: > On Fri, 1 Jan 2010, Andy Koppe wrote: > >>>    XTerm*vt100.metaSendsEscape: true >> >> Actually that's not a hack, but the correct solution. I think this >> needs to be part of the default config in /etc/X11/app-defaults/XTerm. &g

Re: Symbolic links problem with cygwin 1.7.1 in 64-bit Win7 Command Prompt

2010-01-01 Thread Andy Koppe
symlinks you want that way. That won't work. The option causes symlinks to be represented by Windows shortcuts, which do work in Explorer, but not in cmd.exe where they appear as .lnk files instead. (Lame, eh?) Andy -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: Help on configuring keyboard on Cygwin/x on Windows XP

2010-01-01 Thread Andy Koppe
server startup: $ xwin -xkblayout fo Or the setxkbmap command for a running server: $ setxkbmap fo Andy -- 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: Symbolic links problem with cygwin 1.7.1 in 64-bit Win7 Command Prompt

2010-01-02 Thread Andy Koppe
ntest advantage over Cygwin-only symlinks implemented as files with the SYSTEM DOS attribute set." You could create a Windows symbolic link using the Windows 'mklink' tool though, and it should work both in cmd.exe and in Cygwin. Andy -- Problem reports: http://cygwin.com/pr

Re: [ANNOUNCEMENT] New: Updated: {ncursesw/libncursesw10/libncursesw-devel/ncursesw-demo}-5.7-18

2010-01-03 Thread Andy Koppe
de characters (that is, wchar_t > rather than char). Good stuff. Thanks! Andy -- 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

cygwin_create_path

2010-01-03 Thread Andy Koppe
ot;? Simply dropping the "\\?\" wouldn't work for network paths. I haven't managed to find a solution on MSDN. Andy -- 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: cygwin_create_path

2010-01-03 Thread Andy Koppe
2010/1/3 Andy Koppe: > I'm having a spot of trouble changing mkshortcut to use the > wchar_t-enabled cygwin_create_path instead of the deprecated > cygwin_conv_to_full_win32_path & co. When converting to a Windows path > using CCP_POSIX_TO_WIN_W, the result is a path starti

Re: Cygwin 1.7.1 sprintf() with format string having 8th bit set

2010-01-04 Thread Andy Koppe
r set of the "C" locale in Cygwin 1.7 is UTF-8 and that the \300 on its own is an invalid UTF-8 byte. To get well-defined behaviour, you need to invoke setlocale(LC_CTYPE, ...) with the approriate locale. See the thread at http://cygwin.com/ml/cygwin/2009-12/msg00980.html for more on this.

Re: Cygwin 1.7.1 sprintf() with format string having 8th bit set

2010-01-04 Thread Andy Koppe
at string is undefined behaviour. Anything can happen. And what likely happened is that the compiler replaced the third sprintf call with strcpy (which is specified on strings rather than character strings). The real discussion to be had here is whether "C" should continue to mean UTF-8

Re: Cygwin 1.7.1 sprintf() with format string having 8th bit set

2010-01-04 Thread Andy Koppe
(LC_CTYPE, "POSIX") also did not work. It happens to > return "C". "POSIX" is just a synonym for "C". > The above behaviour seems to disagree with the man page. Which man page? Andy -- 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: rxvt and strange characters from man

2010-01-04 Thread Andy Koppe
wo choices: - Change your locale to one with a singlebyte character set, e.g. en_US.ISO-8859-1. - Use a different terminal: urxvt or xterm if you want to run X, or mintty if you don't. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/

Re: git stopped working with 1.7.1

2010-01-05 Thread Andy Koppe
with the following: - LANG=en_US.UTF-8 - LANG=en_US.ISO-8859-1 - LANG=C - LANG=(nothing) Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#un

Re: [Fwd: Blue screen when running installation *.sh]

2010-01-05 Thread Andy Koppe
o work around bugs in those. As Greg points out, Google results look like 'ibmfilter.sys' is the very definition of crapware. Try uninstalling it if possible. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation

Re: setup*exe for legacy and current versions

2010-01-06 Thread Andy Koppe
2010/1/6 Fergus: >>> Something wrong somewhere? > >>  No. > > O .. K .. thanks for that ... > So how does the same executable differing only in name trigger two entirely > different installations? It checks its own name using argv[0] and acts accordingly. Andy

Re: Cygwin 1.7.1-1: problem with pipe to windows programs

2010-01-06 Thread Andy Koppe
which uses overlapped IO to create more reliable interruptible pipes and fifos. Bottom line: it's a sqlcmd bug. Report it to Microsoft. Andy -- 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: Weird characters in man pages

2010-01-06 Thread Andy Koppe
his reason, mintty replaces U+2010 with a plain ol' ASCII hyphen/minus character (0x2D). Andy -- 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: Cygwin 1.7.1-1: problem with pipe to windows programs

2010-01-07 Thread Andy Koppe
se > > My mount in /etc/fstab is text, I tried binary, that seems to not help. > > any ideas? Another thing to try might be the locale setting. Windows uses codepage numbers where Unix uses charset names, so perhaps sqlcmd is stumbling over those. In particular, try unsetting LANG. An

Re: obsolete Windows registry keys

2010-01-07 Thread Andy Koppe
2010/1/7 David Arnstein: > I have finished upgrading from  1.5.x to 1.7.x and I don't intend to > go back. Now I would like to delete the entries some entries from my > Windows registry. What are the keys that were used in 1.5.x, but are > no longer used in 1.7.x? HKLM\Software\Cygnus Solutions -

Re: How do I disable old SSH protocol

2010-01-07 Thread Andy Koppe
2010/1/7 raytheman: > > My cygwin supports all the old SSH protocol, I need to disable them in order > to meeting the security requirement, please help. > > - 1.33 > - 1.5 > - 1.99 > - 2.0 RTFM: man ssh -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin

Re: [ANNOUNCEMENT] updated: orpie-1.5.1-2

2010-01-08 Thread Andy Koppe
pened mintty. And the difference appears to be in the PATH: in the new session it has an additional /usr/lib/lapack at the end. Andy -- 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: [ANNOUNCEMENT] updated: orpie-1.5.1-2

2010-01-08 Thread Andy Koppe
like everything else. Thanks for the fix. Andy -- 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: HOME environment variable set in Windows

2010-01-08 Thread Andy Koppe
set it? I have HOME, HOMEPATH and > HOMEDRIVE set in my windows environement and I cant' find where they get > defined. Does anybody know? Control Panel -> System -> Advanced System Settings -> Environment Variables Or something like that. Andy -- Problem reports:

Re: ntEmacs has trouble with cygwin terminal...

2010-01-11 Thread Andy Koppe
emacsclient, perhaps it's getting upset about Cygwin's LANG setting. Try unsetting that. > If you want everything to work as expected, > either don't run NTEmacs from Cygwin programs, or use the Cygwin build > of Emacs. Yep. And don't expect much help with NTEmacs he

Re: Running Cygwin from an NFS drive (symlinks with system attribute)

2010-01-12 Thread Andy Koppe
2010/1/12 sbremal > I am afraid the winsymlinks option is an installation time setting, is it? : No, but it only affects newly created symlinks. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.

Re: various problems resulting from version 1.7.1

2010-01-12 Thread Andy Koppe
at for some reason, but U+2212 is present in all the fonts I've tried, except of course in non-Unicode fonts. For example, Consolas, Courier New, and DejaVu Sans Mono all have it. Bottom line: use a Unicode font for UTF-8. Andy -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: How to print textfiles in Cygwin 1.7?

2010-01-12 Thread Andy Koppe
t; Files with umlauts are recognized as UTF-8 by the file command. Please note that 'nano' also doesn't support UTF-8 yet. While entering characters looks like it works initially, nano will internally think that you've entered two characters when you enter an umlaut. He

Re: various problems resulting from version 1.7.1

2010-01-12 Thread Andy Koppe
2010/1/13 Cyrille Lefevre: > give a try to puttycyg which support both ssh, telnet as well cygwin. The OP is insisting on running the Windows versions of telnet and ftp, and those won't work in puttycyg either. Same in any other terminal based on 'pseudo terminal' (pty) devices.

Re: Tried out cygwin-inst-20100111.tar.bz2

2010-01-13 Thread Andy Koppe
console, it hurt.  I fixed that in CVS. Thanks! And apologies for not testing with CYGWIN=tty at the time. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://c

Re: Fresh installation issues Cygwin 1.7

2010-01-13 Thread Andy Koppe
pologies for sounding irate, it is just that like everyone I was > in a middle of "something important" and I messed up something which I > rely on for my bread and butter. A great time for a major update on your production machine then. Andy -- Problem reports: http

Re: Strange case of missing XWin

2010-01-14 Thread Andy Koppe
Yes. X applications do not depend on XWin (i.e. the xorg-server package) because they can be used with any X server, including one running on a different machine. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation:

Re: Should LANG be set or left unset?

2010-01-14 Thread Andy Koppe
able is "C.UTF-8". I'd still recommend to set it to en_US.UTF-8 though, because that's least likely to cause issues with any programs that have their own ideas about locales. (Others of course will want to replace 'en_US' with their language and country.) Andy --

Re: Bag LANG setting?

2010-01-14 Thread Andy Koppe
remember when the man output was last formatted correctly. Any > advise on where to check next? > > $ uname -a > CYGWIN_NT-5.1 phoenix 1.7.0(0.212/5/3) 2009-08-20 10:56 i686 Cygwin Looks like you could do with an update. Andy -- Problem reports: http://cygwin.com/problems.html

Re: How to print textfiles in Cygwin 1.7?

2010-01-15 Thread Andy Koppe
rinting a UTF-8 file there? Andy -- 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: rxvt ctrl-c killing process

2010-01-19 Thread Andy Koppe
this issue. All a terminal does when Ctrl+C is pressed is write a ^C character to its pseudo terminal device (pty), and it's the pty driver that handles it (depending on the pty's settings): Cygwin processes are sent a SIGINT signal, but Windows processes such as Java are terminate

Re: highlight keywords

2010-01-20 Thread Andy Koppe
default config is broken, looking for gcc in /usr/local/bin. Hence you need to either edit the global config at /etc/colorgcc/colorgccrc or copy it to ~/.colorgccrc and change the paths to /usr/bin. You can also change the colours for various messages there.) Andy -- Problem reports: http://cygw

Re: path not found - fstab problem?

2010-01-20 Thread Andy Koppe
te > Wed Jan 20 20:20:44 PST 2010 > > r...@mycomputer ~ > $ ant > -bash: ant: command not found > > my .bash_profile path looks like: > PATH=$PATH:/c/Apps/apache-ant-1.8.ORC1/bin > export PATH You've got an O ('oh') instead of a 0 ('ze

Re: Why require ps -W and kill -f

2010-01-21 Thread Andy Koppe
in the same Cygwin process, but actually a new Windows process has to be created since Windows doesn't allow a process to change executable. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.c

Re: Please support CP932. (I have problem using subversion with SJIS)

2010-01-23 Thread Andy Koppe
ply aliasing CP932 to SJIS is wrong, because they are quite different character sets. Supporting CP932 as a charset in its own right might be worth considering though, especially as that's the standard charset on Japanese Cygwin 1.5. Andy -- Problem reports: http://cygwin.com/problems.html

Re: Setup.exe 2.674 does not work properly if retry is used

2010-01-23 Thread Andy Koppe
On 23 January 2010 12:02, Christian Franke: >>> Current setup.exe does not work properly if retry is used. >> >> Known regression.  Somebody has to fix this. > > This is apparently fixed in setup.exe 2.677 Yep, cgf braved the innards of setup.exe and hunted down

Re: Please support CP932. (I have problem using subversion with SJIS)

2010-01-23 Thread Andy Koppe
Corinna Vinschen: > I applied a patch which handles the characters 0x5c and 0cfe differently > if the charset is set to "SJIS" Something's going seriously wrong with this, and I'd suspect it's to do with turning backslashes into yen symbols. C:\Users\Andy>set L

Re: Please support CP932. (I have problem using subversion with SJIS)

2010-01-24 Thread Andy Koppe
eone really needs standard SJIS for converting documents or something, they can use iconv. Therefore I've changed my mind on whether to keep SJIS and CP932 separate: I think we should stick with the .SJIS charset as it is in 1.7.1, except that nl_langinfo(CODESET) for it should return

Re: Compiling strings with nonascii chars.

2010-01-25 Thread Andy Koppe
rce files. This might be a case of the source being encoded in ISO-8859-1 while the compiler tries to interpret it as UTF-8. Try invoking the build with LANG=C.ISO-8859-1. I'm assuming you're using Cygwin 1.7? Andy -- Problem reports: http://cygwin.com/problems.html FAQ:

[ANNOUNCEMENT] Updated: mintty-0.5.7-1

2010-01-26 Thread Andy Koppe
Mintty is a terminal emulator for Cygwin with a native Windows user interface and minimalist design. Among its features are Unicode support and a graphical options dialog. Its terminal emulation is largely compatible with xterm, but it does not require an X server. Mintty is based on code from PuTT

Re: Please support CP932. (I have problem using subversion with SJIS)

2010-01-26 Thread Andy Koppe
ready. This means that with LANG=ja_JP, xterm uses eucJP, while filenames and programs currently use the system's ANSI codepage, i.e. CP932 on Japanese systems. Result: mojibake. It does work correctly with LANG=ja_JP.SJIS. Andy -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: Please support CP932. (I have problem using subversion with SJIS)

2010-01-26 Thread Andy Koppe
2010/1/27 Kazuhiro Fujieda: > Andy said `Seems SJIS really isn't suited for Unix command line > use.' I said there is no problem, no difference with EUC-JP, and > no need to change the default. That comment primarily referred to standard SJIS, with its mappings of the ASCII

Re: [1.7] Recent build failures (grap and nano) and strange characters in error log

2010-01-27 Thread Andy Koppe
ocale, which rxvt does not support. > Should I be re-setting LANG or otherwise adjusting my environment? Yep, either use a different terminal or set LANG to something that rxvt supports, e.g. en_GB.ISO-8859-1. Andy -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: Please support CP932. (I have problem using subversion with SJIS)

2010-01-28 Thread Andy Koppe
Kazuhiro Fujieda: > Andy Koppe: >> Another example is X11, which has its own locale system independent >> from Cygwin's. There, "ja_JP" implies eucJP already. This means that >> with LANG=ja_JP, xterm uses eucJP, while filenames and programs >> currently

Re: File format problem after updatin to 1.7.1

2010-01-29 Thread Andy Koppe
ges afterwards. Most notably the mount point storage has been moved out of the registry into files. User mount points are NOT copied into the new user-specific /etc/fstab.d/$USER file. Rather, every user has to call the /bin/copy-user-registry-fstab shell script once after the update." And

Re: dlclose not calling destructors of static variables.

2010-01-29 Thread Andy Koppe
opposite order that the corresponding constructors were invoked and the atexit functions were registered. Since atexit() may be called from static constructors, there should theoretically be a single stack for destructors and atexit functions. But if that's not practical, invoking the atexit stu

Re: Python does not support default locale

2010-02-03 Thread Andy Koppe
you're getting messages from 'bzr'? Please describe the actual steps that produced those warnings. Also, is bzr connecting to a remote machine? I don't get those warnings if I just do 'bzr init' locally. > Setting LC_ALL to C.ISO-8859-1 removed the warning. Right

Re: Can't find setup.ini in any mirror

2010-02-04 Thread Andy Koppe
Steve Denson: > Cygwin setup.exe can't find setup.ini in any mirror. Are using the latest setup.exe from the Cygwin homepage? Any firewalls or proxies that might be in the way? Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin

Re: Changing .ini file searched for by setup-legacy.exe

2010-02-07 Thread Andy Koppe
of setup-legacy.ini? What's the mirror you're trying to use? Won't Rockbox work on the latest Cygwin 1.5 from one of the official mirrors (which should all have setup-legacy.ini)? Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/f

Re: About SystemC installation in Cygwin

2010-02-10 Thread Andy Koppe
Mohammad Qayum: > 'configure' didn't succeed. What could be the > potential cause of configure failure Anything. Look at configure's output, it will usually tell you. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cyg

Re: Download site http://mirrors.kernel.org

2010-02-12 Thread Andy Koppe
> Also, <http://cygwin.com/mirrors.html> helps you answer this for yourself > anytime. An oddity in that list: Japan appears as a continent with Asia as a country. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ D

Re: TTY write deadlock

2010-02-18 Thread Andy Koppe
e frequently, but I guess hacking away at the keyboard while output is going on just isn't something one would normally do. Anyway, as long as there isn't a fix, is there anything I could do in mintty to work around this? Would it help to move the writing of keyboard input to the pty device into its own thread? Andy -- 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: mintty - char encoding problems

2010-02-19 Thread Andy Koppe
appear on the bach command line as c ( š and ž don't appear at all). > > Any idea what is wrong? A mismatch of Cygwin's charset and mintty's charset, probably. What versions of Cygwin and mintty are you using? What are the values of LC_ALL, LC_CTYPE and LANG? Is anything s

Re: 1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.

2010-02-19 Thread Andy Koppe
t; case.  But in the latter case, if there're whitespaces in the > myscript's pathname, the batch will fail to run. Hmm, perhaps the argument mangling at program startup is using the ANSI codepage (i.e. GBK in this case) when it should be using UTF-8? Andy -- Problem reports: h

Re: 1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.

2010-02-20 Thread Andy Koppe
usr/bin/bash: > "F:/zhaohs/Desktop/鏂版煡鏂囩尞/RestoreName4Elsevier.sh": No such >  file or directory That's easily explained: batch files are assumed (by Windows) to be encoded in the OEM codepage, which on your system will be the same as the ANSI codepage, i.e. GBK (aka CP936).

Re: 1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.

2010-02-20 Thread Andy Koppe
string as GBK. >> Seems sys_mbstowcs and WriteFileW are needed there. > > There's no such thing as a WriteFileW function. D'oh, of course. I confused it with WriteConsole, which does have a Unicode version. Andy -- Problem reports: http://cygwin.com/problems.htm

Re: Problems with mutt & charset

2010-02-20 Thread Andy Koppe
muttrc send_charset is unset, so allegedly defaults to > charset, but that doesn't seem to be the case here for some reason. I don't use mutt, so I can't really help here, but a mintty user reported that he had to rebuild mutt against ncursesw (which is now part of the

Re: mintty - char encoding problems

2010-02-20 Thread Andy Koppe
by that, because the standards and formats setting shouldn't have any effect on LANG, at least as far as mintty and Cygwin are concerned. Any idea how it might have got set to "SL"? In any case, the easy way to set locale and charset in mintty is via the Text options. This will also se

Re: mintty - char encoding problems

2010-02-20 Thread Andy Koppe
means something else set it to "SL". Is there any other Unixish software on your machine that might be doing that? MS's "Services for Unix" perhaps? Emacs? I understand you're no longer interested in this since you've solved your problem, but it would nevertheless be

Re: Problems with mutt & charset

2010-02-20 Thread Andy Koppe
(for instance Unicode and the UTF-8 encoding). The corresponding wide-character ncursesw libraries are source-compatible with the normal applications. That is, applications must be compiled and linked against the ncursesw library." Andy -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: Batch file code to launch rxvt pointed elsewhere than $HOME -- what's wrong with my code?

2010-02-21 Thread Andy Koppe
you put the '-cd ' before the -e it won't work as you expect because the default /etc/profile contains a 'cd $HOME' command. Instead of using -cd, though, you could set HOME in your batch script: set HOME=C:\blu\newest Or you could change your home directory in /etc/passw

[1.7.2] change in cygpath -w behaviour?

2010-02-22 Thread Andy Koppe
ut backslash quoting, because "\\?\C:\tmp" loses a vital backslash during quote removal. Andy -- 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: [1.7.2] change in cygpath -w behaviour?

2010-02-22 Thread Andy Koppe
ut >> backslash quoting, because "\\?\C:\tmp" loses a vital backslash during >> quote removal. > > Thanks for the report.  Should be fixed in CVS. Confirmed. Thanks, Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.

Re: [ANNOUNCEMENT] Updated: Unicode text editor MinEd 2000.16

2010-02-23 Thread Andy Koppe
sein, z.B. mit einem separaten Paket? Ein Fehler mit dem Kontextmenü: eine Datei names "New Text Document.txt" wird als "New" geöffnet. Schönen Gruß, Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documen

Re: terminals getting killed on parent's termination

2010-02-26 Thread Andy Koppe
ns >        -> xterm is killed When a console is closed, Windows kills all processes attached to it. > Also, mintty can be protected from being killed by spawning it with > (mintty&) > while xterm, spawned this way from a cygwin console, still gets killed. Yep, doing that doesn&#

[ANNOUNCEMENT] mintty-0.5.8-1

2010-02-27 Thread Andy Koppe
Mintty is a terminal emulator for Cygwin with a native Windows user interface and minimalist design. Among its features are Unicode support and a graphical options dialog. Its terminal emulation is largely compatible with xterm, but it does not require an X server. Mintty is based on code from PuTT

cygwin 1.7.1: "bash prompt here" can't be used at directory which's name contains unicode charactor.

2010-03-02 Thread wu andy
In cygwin 1.7.1, when I use "bash promt here" at a directory which's name contains unicode charactor, there's wrong. But it's right under cygwin 1.5.x. Below is my example. C:\Users\andy>C:\cygwin\bin\bash -c "/bin/xhere /bin/bash.exe 'd:\我的工作'" cy

Re: Non-canonical mode input via tcsetattr(), under mintty console

2010-03-03 Thread Andy Koppe
; wide-character) functions > [...] I'd go with that, because that way you can support not only UTF-8, but all the charsets supported by the OS. > (provided you want characters as Unicode words, > not UTF-8 sequences in your program). In that case, one can just ignore the

Re: mintty colors

2010-03-03 Thread Andy Koppe
vt.color4:#007fff Blue (i.e. color 4) on black background is just a bad idea, full stop. Brightening it up by default would impair its usability as a background colour. (Try 'mc' with your setting.) And mintty's default for colour 12 is #4040ff, which is much the

Re: mintty colors

2010-03-03 Thread Andy Koppe
; (or 'xterm-256color') as part of the conditional code. Andy -- 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: terminals getting killed on parent's termination

2010-03-03 Thread Andy Koppe
Thomas Wolff: > Andy Koppe: >> Mintty has default handling for SIGHUP, i.e. it exits. > > Actually (another topic but related) mintty has a great feature here: it > passed the SIGHUP to its client application and if that application catches > and handles the SIGHUP, mintt

Re: Odd behavior of mintty with screen

2010-03-04 Thread Andy Koppe
Xterm ignores the DECCOLM sequence by default and provides a separate control sequence for allowing DECCOLM. I'll implement that for mintty 0.6. Thanks for the report. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation:

Re: terminals getting killed on parent's termination

2010-03-05 Thread Andy Koppe
data. Yet unlike with xterm, a misbehaving application won't stop the user from closing the terminal, because guess who'd be blamed for that. > Should I propose a patch? Not much point, because the difficult bit here is design not implementation. Andy -- Problem reports: http://

Re: terminals getting killed on parent's termination

2010-03-05 Thread Andy Koppe
tical terms it means that xterm would need to call FreeConsole() to detach from the console it's started from. If you're interested in the details, there's always MSDN. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/

Re: terminals getting killed on parent's termination

2010-03-05 Thread Andy Koppe
Andy Koppe: > Thomas Wolff wrote: >> In general, a GUI application started in the background, like a terminal, >> should detach itself from its parent process so that it survives if the >> parent is terminated. > > Says who? You can always invoke it with setsid or some s

Re: About mode-dependent cursor

2010-03-07 Thread Andy Koppe
e implementation of DECSCUSR could be done using SetConsoleCursorInfo). Andy -- 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: "can't create master tty" errors

2010-03-09 Thread Andy Koppe
current highest one. This means, however, that if opening and closing of terminal sessions is interleaved in certain ways, Cygwin might eventually run out of terminal IDs, even if only few of them are actually used. High numbers in the TTY column of the 'ps' output would point to that.

Re: terminals getting killed on parent's termination

2010-03-09 Thread Andy Koppe
enabled by default, i.e. the "X"/SIGHUP button often is the only way to close it. Xterm's child process normally is a shell that does handle SIGHUP correctly, so I guess my concern about an unclosable terminal isn't really relevant in practice. So sod it, I'll change mintty t

Close==SIGHUP

2010-03-09 Thread Andy Koppe
Hallo Thomas, Ich habe den Close==SIGHUP Wunsch auf trunk implementiert. Wär toll, wenn Du das einem Härtetest unterziehen könntest, auch in Verbindung mit --hold=always und --hold=error. Gruss, Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http

Re: allow executing a path in backslash notation

2010-03-10 Thread Andy Koppe
l wrong? Doesn't backslash in the double > quote (") acts as an escape character. i.e \s = s, \c = c etc. http://www.gnu.org/software/bash/manual/bashref.html#Double-Quotes: The backslash retains its special meaning only when followed by one of the following characters: ‘$’, ‘`’, ‘

Re: return value of mkshortcut on Windows 7

2010-03-10 Thread Andy Koppe
David Byron: > mkshortcut is returning 8 when I expect it to return 0. Yep, known issue. > I'd love a hand getting mkshortcut to return 0 in this case. Index: src/mkshortcut/mkshortcut.c === RCS file: /cvs/cygwin-apps/cygutils/src/m

mintty 0.6-beta3 problem (was: Re: Close==SIGHUP)

2010-03-11 Thread Andy Koppe
we should take this to the mintty issue tracker, since the beta isn't shipped with Cygwin. Andy -- 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: missing paths

2010-03-12 Thread Andy Koppe
And if that doesn't help: rxvt -e /bin/bash -l Andy -- 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: missing paths

2010-03-12 Thread Andy Koppe
t PATH (And lose the '-c "exec /bin/bash"' at the end of the rxvt shortcut, unless you've got a particular reason for double-invoking bash like that.) Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation

Re: missing paths

2010-03-12 Thread Andy Koppe
reinstall the 'base-files' package at this point. If you created an /etc/profile just now, delete it first (because a customised profile won't be overwritten). Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation:

Re: filenames with characters that have the high bit set

2010-03-16 Thread Andy Koppe
"od -c" I see > Then for kicks I tried: > > $ touch "\x18"; echo $? > 0 Have a look in your root directory. There should be a file called x18 there. > Can someone give me a hand coming up with a command line where I can build > up filenames t

Re: cygwin 1.7: why there is a directory E/cygwin/dev in the tree of cygwin ?

2010-03-16 Thread Andy Koppe
quot; mkdir -p "$DEVDIR" || result=1 I haven't stared at the sed magic long enough to work out exactly what it does or why, but it looks suspiciously like it assumes that Cygwin is installed on the C drive. Andy -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: filenames with characters that have the high bit set

2010-03-16 Thread Andy Koppe
--quoting style option. > $ ls > ^X > > which seems inconsistent. Yep, but that's a bash vs ls issue rather than a Cygwin one. You'd get the same on Linux. But if you use control characters in filenames, you better know what you're doing anyway. Some argue that it shouldn't b

Re: filenames with characters that have the high bit set

2010-03-16 Thread Andy Koppe
eady, i.e. they still use Windows >> "ANSI" APIs. > > Guess it's time to roll up my sleeves and write a patch. That'd be great. Here's a starting point: http://cygwin.com/ml/cygwin-apps/2010-01/msg1.html Andy -- Problem reports: http://cygwin.

Re: 1.7.1: cvs version built in is unstable

2010-03-17 Thread Andy Koppe
; have another case (like "utilities") by any chance? Andy -- 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: 1.7.1: cvs version built in is unstable

2010-03-17 Thread Andy Koppe
he named file does not exist. Or, a >      directory component in pathname does not exist or is a dangling >       symbolic link. The way I understand this, the open() call shouldn't fail with ENOENT given those arguments, because O_CREAT is set and there is no directory compone

<    1   2   3   4   5   6   7   8   9   10   >