public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Steven Penny <svnpenn@gmail.com>
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] Updated: libreadline7-7.0.3-3
Date: Fri, 28 Jul 2017 18:39:00 -0000	[thread overview]
Message-ID: <597b2988.4338ca0a.87fc4.4954@mx.google.com> (raw)
In-Reply-To: <60db3460-a1c1-7cc2-0369-a7109d782ea0@redhat.com>

On Fri, 28 Jul 2017 06:41:08, Eric Blake wrote:
> As in /etc/defaults/Cygwin.bat installed by the base-files package?

As in "C:\cygwin64\Cygwin.bat" that can be found after a regular install of
Cygwin

> It's short:
> 
> @echo off
> setlocal enableextensions
> set TERM=3D
> cd /d "%~dp0bin" && .\bash --login -i

Uh, no? Mine looks like this. Again this is the file installed by Cygwin, not
something I have home brewed:

    @echo off
    C:
    chdir C:\cygwin64\bin
    bash --login -i

> so if you are already in a cmd window, and typing cygwin.bat, then it is
> the same as if you are directly starting bash from cmd.

I am not doing this, I am just using Windows explorer to go to "C:\cygwin64",
then double clicking "Cygwin.bat"

> By the way, I didn't know cygwin.bat was still around (I had to go
> hunting for it).  Ages ago, that use to be the target of the shortcut
> installed to the desktop, but we switched quite a while ago to having
> the target point directly to mintty instead of the .bat file (since
> mintty is a LOT friendlier than running inside cmd).

I dont want mintty. As you know mintty adds another "layer" to the situation,
another process. If I was using mintty I would not have discovered this problem
in the first place. Some might say good, but no. It is important that even
launching Cygwin via Cygwin.bat/bash.exe works in a sane manner; and that it not
sacrifice features that even cmd.exe has, which is the current situation.

> Also, what does 'chcp.com' say prior to you executing cygwin.bat

Prior to "Cygwin.bat", it says 65001, because I feel that is the proper default
for Windows. I set it like this:

    REG ADD 'HKCU\Console' /v CodePage /t REG_DWORD /d 65001 /f

> are you then trying to call chcp.com WHILE bash is running? I have no idea if
> cygwin is even aware/amenable of live code page changes while running inside a
> cmd window

Yes, However I do not think this is germain to the conversation, as I have found
you can change it "live" without issue.

> Making me chase URLs doesn't help as much as a single mail, with a
> step-by-step reproduction of what you did vs. what you expected, so that
> I can refer to a single window rather than multiple browser tabs when
> trying to follow those same steps.

Cmon man, give me a break here, I am trying. I have been posting on this issue
for months, and Id rather not keep regurgitation the same stuff over and over.
At any rate, here is the text from that link,
LATIN SMALL LETTER O WITH DIAERESIS' (U+00F6):

    $ chcp.com 65001
    Active code page: 65001

- Alt 148 outputs nothing
- Alt 0246 outputs nothing
- Pasting this character does not work

    $ chcp.com 437
    Active code page: 437

- Alt 148 works
- Alt 0246 works
- Pasting works

and here is why 65001 is needed at all:

    $ cat omega.c
    #include <stdio.h>
    int main() {
     printf("Ω\n");
    }

    $ x86_64-pc-cygwin-gcc -o cygwin.exe omega.c
    $ x86_64-w64-mingw32-gcc -o mingw32.exe omega.c
    $ chcp.com 65001
    Active code page: 65001

    $ ./cygwin.exe
    Ω

    $ ./mingw32.exe
    Ω

    $ chcp.com 437
    Active code page: 437

    $ ./cygwin.exe
    Ω

    $ ./mingw32.exe
    Ω


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

  reply	other threads:[~2017-07-28 12:09 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-13 19:53 [ANNOUNCEMENT] Updated: libreadline7-7.0.3-3, libreadline-devel-7.0.3-3 Eric Blake (cygwin)
2017-03-25  0:46 ` Steven Penny
2017-04-13 19:07   ` [ANNOUNCEMENT] Updated: libreadline7-7.0.3-3 Steven Penny
2017-04-14  8:27     ` Eric Blake
2017-04-15 10:59       ` Steven Penny
2017-05-15 18:21         ` Eric Blake
2017-05-15 20:46           ` Chet Ramey
2017-06-18 15:53             ` Steven Penny
2017-07-04 21:53             ` Steven Penny
2017-07-27 21:37         ` Eric Blake
2017-07-27 21:39           ` Eric Blake
2017-07-27 21:46           ` Steven Penny
2017-07-28  8:28             ` Eric Blake
2017-07-28 14:55               ` Steven Penny
2017-07-28 18:31                 ` Eric Blake
2017-07-28 18:39                   ` Steven Penny [this message]
2017-07-28 23:55                     ` Eric Blake
2017-07-29  1:55                       ` Cygwin.bat (was: [ANNOUNCEMENT] Updated: libreadline7-7.0.3-3) Achim Gratz
2017-07-29  2:48                       ` [ANNOUNCEMENT] Updated: libreadline7-7.0.3-3 Doug Henderson
2017-07-29  4:23                         ` Steven Penny
2017-07-30 18:38                           ` Doug Henderson
2017-07-30 19:54                             ` Steven Penny
2017-07-29  8:45                       ` Steven Penny
2017-07-29 10:08                         ` Eric Blake
2017-07-31 18:36                     ` Corinna Vinschen
2017-07-31 20:01                       ` Steven Penny
2017-07-31 20:05                       ` David Macek
2017-07-31 21:13                         ` David Macek
     [not found]                         ` <20170731200146.GD18950@calimero.vinschen.de>
     [not found]                           ` <20170731211327.GG18950@calimero.vinschen.de>
2017-08-01  0:56                             ` Steven Penny
2017-08-01  8:45                               ` Corinna Vinschen
2017-08-01 14:48                                 ` Corinna Vinschen
2017-08-01 18:20                                   ` Steven Penny
2017-08-01 18:54                                     ` Achim Gratz
2017-08-01 19:02                                       ` Eric Blake
2017-08-01  7:22                             ` David Macek
2017-08-01  8:46                               ` Corinna Vinschen
     [not found]                           ` <160b3569-d448-1898-3dcd-b7133a772527@SystematicSw.ab.ca>
2017-08-01  8:44                             ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=597b2988.4338ca0a.87fc4.4954@mx.google.com \
    --to=svnpenn@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).