public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Unexpected output from curl and wttr.in
@ 2019-12-19 14:36 Mike MacEachern
  2019-12-19 19:48 ` Marco Atzeri
  2019-12-20 18:20 ` Csaba Raduly
  0 siblings, 2 replies; 10+ messages in thread
From: Mike MacEachern @ 2019-12-19 14:36 UTC (permalink / raw)
  To: cygwin

I'm currently at a loss with how curl is parsing wttr.in.  Now I've used
it without in the past, but it seems right now it's really struggling.
I've checked and echo $LANG reports en_US.UTF-8 just in case that was
the issue but it's not.  Now I've tried both mintty and the Windows
console (and changed ForceV2 to 0 as well), no dice.

What's interesting though if I use Cygwin to SSH into my Linux running
laptop, curl's output looks fine, so the issue doesn't appear to be
terminal related, unless there's something else I'm missing.  Here's a
screenshot of what's going on.

https://i.imgur.com/NNgtmlD.png

The top two windows are the local Cygwin machine, the bottom window is
Cygwin SSH'ed into my Linux machine.  This is a new Cygwin installation
too, only thing I changed was my bash prompt, but I don't see that
causing an issue.  Other programs like lynx, irssi, vim, nano, all
render just fine on Cygwin.  Screenfetch does have a slight text
alignment issue, but it still manages to parse fine, but curl is way off.

Ideas?


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Unexpected output from curl and wttr.in
  2019-12-19 14:36 Unexpected output from curl and wttr.in Mike MacEachern
@ 2019-12-19 19:48 ` Marco Atzeri
  2019-12-20 18:20 ` Csaba Raduly
  1 sibling, 0 replies; 10+ messages in thread
From: Marco Atzeri @ 2019-12-19 19:48 UTC (permalink / raw)
  To: cygwin

Am 19.12.2019 um 15:06 schrieb Mike MacEachern:
> I'm currently at a loss with how curl is parsing wttr.in.  Now I've used
> it without in the past, but it seems right now it's really struggling.
> I've checked and echo $LANG reports en_US.UTF-8 just in case that was
> the issue but it's not.  Now I've tried both mintty and the Windows
> console (and changed ForceV2 to 0 as well), no dice.
> 
> What's interesting though if I use Cygwin to SSH into my Linux running
> laptop, curl's output looks fine, so the issue doesn't appear to be
> terminal related, unless there's something else I'm missing.  Here's a
> screenshot of what's going on.
> 
> https://i.imgur.com/NNgtmlD.png
> 
> The top two windows are the local Cygwin machine, the bottom window is
> Cygwin SSH'ed into my Linux machine.  This is a new Cygwin installation
> too, only thing I changed was my bash prompt, but I don't see that
> causing an issue.  Other programs like lynx, irssi, vim, nano, all
> render just fine on Cygwin.  Screenfetch does have a slight text
> alignment issue, but it still manages to parse fine, but curl is way off.
> 
> Ideas?
> 

it seems curl does not kick the ESC interpretation,
however this does

$ curl -s wttr.in | cat

Weather report: Gronsdorf, Germany

      \   /     Clear
       .-.      2..4 °C
    ? (   ) ?   ? 7 km/h
       `-’      10 km
      /   \     0.0 mm
.....



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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Unexpected output from curl and wttr.in
  2019-12-19 14:36 Unexpected output from curl and wttr.in Mike MacEachern
  2019-12-19 19:48 ` Marco Atzeri
@ 2019-12-20 18:20 ` Csaba Raduly
  2019-12-21  1:21   ` Marco Atzeri
  1 sibling, 1 reply; 10+ messages in thread
From: Csaba Raduly @ 2019-12-20 18:20 UTC (permalink / raw)
  To: cygwin list

On Thu, Dec 19, 2019 at 3:10 PM Mike MacEachern <maceach.m@h-networks.net>
wrote:

> I'm currently at a loss with how curl is parsing wttr.in.  Now I've used
> it without in the past, but it seems right now it's really struggling.
> I've checked and echo $LANG reports en_US.UTF-8 just in case that was
> the issue but it's not.  Now I've tried both mintty and the Windows
> console (and changed ForceV2 to 0 as well), no dice.
>
> What's interesting though if I use Cygwin to SSH into my Linux running
> laptop, curl's output looks fine, so the issue doesn't appear to be
> terminal related, unless there's something else I'm missing.  Here's a
> screenshot of what's going on.
>
> https://i.imgur.com/NNgtmlD.png
>
>
Works just fine for me on Windows 10 and mintty
https://imgur.com/ugWl9BY

Csaba

-- 
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformant
way
to get the wrong information: this is what you want. - Scott Meyers
(C++TDaWYK)

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Unexpected output from curl and wttr.in
  2019-12-20 18:20 ` Csaba Raduly
@ 2019-12-21  1:21   ` Marco Atzeri
  2019-12-21  2:13     ` Mike MacEachern
  0 siblings, 1 reply; 10+ messages in thread
From: Marco Atzeri @ 2019-12-21  1:21 UTC (permalink / raw)
  To: cygwin

Am 20.12.2019 um 17:29 schrieb Csaba Raduly:
> On Thu, Dec 19, 2019 at 3:10 PM Mike MacEachern <maceach.m@h-networks.net>
> wrote:
> 
>> I'm currently at a loss with how curl is parsing wttr.in.  Now I've used
>> it without in the past, but it seems right now it's really struggling.
>> I've checked and echo $LANG reports en_US.UTF-8 just in case that was
>> the issue but it's not.  Now I've tried both mintty and the Windows
>> console (and changed ForceV2 to 0 as well), no dice.
>>
>> What's interesting though if I use Cygwin to SSH into my Linux running
>> laptop, curl's output looks fine, so the issue doesn't appear to be
>> terminal related, unless there's something else I'm missing.  Here's a
>> screenshot of what's going on.
>>
>> https://i.imgur.com/NNgtmlD.png
>>
>>
> Works just fine for me on Windows 10 and mintty
> https://imgur.com/ugWl9BY
> 
> Csaba
> 

Thanks for checking

not noted the first time:
it works on my 64bit but fails on 32bit and the reason is
that 32bit was using the windows version as the curl package was not 
installed.

I assume Mike need to install the curl package

Marco


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Unexpected output from curl and wttr.in
  2019-12-21  1:21   ` Marco Atzeri
@ 2019-12-21  2:13     ` Mike MacEachern
  2019-12-21  3:04       ` Marco Atzeri
  0 siblings, 1 reply; 10+ messages in thread
From: Mike MacEachern @ 2019-12-21  2:13 UTC (permalink / raw)
  To: cygwin

On 12/20/2019 2:36 PM, Marco Atzeri wrote:
> Am 20.12.2019 um 17:29 schrieb Csaba Raduly:
>> On Thu, Dec 19, 2019 at 3:10 PM Mike MacEachern
>> <maceach.m@h-networks.net>
>> wrote:
>>
>>> I'm currently at a loss with how curl is parsing wttr.in.  Now I've used
>>> it without in the past, but it seems right now it's really struggling.
>>> I've checked and echo $LANG reports en_US.UTF-8 just in case that was
>>> the issue but it's not.  Now I've tried both mintty and the Windows
>>> console (and changed ForceV2 to 0 as well), no dice.
>>>
>>> What's interesting though if I use Cygwin to SSH into my Linux running
>>> laptop, curl's output looks fine, so the issue doesn't appear to be
>>> terminal related, unless there's something else I'm missing.  Here's a
>>> screenshot of what's going on.
>>>
>>> https://i.imgur.com/NNgtmlD.png
>>>
>>>
>> Works just fine for me on Windows 10 and mintty
>> https://imgur.com/ugWl9BY
>>
>> Csaba
>>
> 
> Thanks for checking
> 
> not noted the first time:
> it works on my 64bit but fails on 32bit and the reason is
> that 32bit was using the windows version as the curl package was not
> installed.
> 
> I assume Mike need to install the curl package
> 
> Marco
> 
> 

That was it.  Somehow it slipped my mind, but I didn't even know that
Windows had its own version of curl.  Thanks!!


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Unexpected output from curl and wttr.in
  2019-12-21  2:13     ` Mike MacEachern
@ 2019-12-21  3:04       ` Marco Atzeri
  2019-12-22 12:35         ` Brian Inglis
  0 siblings, 1 reply; 10+ messages in thread
From: Marco Atzeri @ 2019-12-21  3:04 UTC (permalink / raw)
  To: cygwin

Am 20.12.2019 um 23:42 schrieb Mike MacEachern:
> On 12/20/2019 2:36 PM, Marco Atzeri wrote:
>> Am 20.12.2019 um 17:29 schrieb Csaba Raduly:
>>> On Thu, Dec 19, 2019 at 3:10 PM Mike MacEachern
>>> <maceach.m@h-networks.net>
>>> wrote:
>>>

>>>
>>
>> Thanks for checking
>>
>> not noted the first time:
>> it works on my 64bit but fails on 32bit and the reason is
>> that 32bit was using the windows version as the curl package was not
>> installed.
>>
>> I assume Mike need to install the curl package
>>
>> Marco
>>
>>
> 
> That was it.  Somehow it slipped my mind, but I didn't even know that
> Windows had its own version of curl.  Thanks!!
> 

same here

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Unexpected output from curl and wttr.in
  2019-12-21  3:04       ` Marco Atzeri
@ 2019-12-22 12:35         ` Brian Inglis
  2019-12-22 12:51           ` Marco Atzeri
  0 siblings, 1 reply; 10+ messages in thread
From: Brian Inglis @ 2019-12-22 12:35 UTC (permalink / raw)
  To: cygwin

On 2019-12-20 19:13, Marco Atzeri wrote:
> Am 20.12.2019 um 23:42 schrieb Mike MacEachern:
>> On 12/20/2019 2:36 PM, Marco Atzeri wrote:
>>> Am 20.12.2019 um 17:29 schrieb Csaba Raduly:
>>>> On Thu, Dec 19, 2019 at 3:10 PM Mike MacEachern wrote:
>>> Thanks for checking
>>> not noted the first time:
>>> it works on my 64bit but fails on 32bit and the reason is that 32bit was
>>> using the windows version as the curl package was not installed.
>>> I assume Mike need to install the curl package
>> That was it.  Somehow it slipped my mind, but I didn't even know that
>> Windows had its own version of curl.  Thanks!!

Useful path search diagnostic commands:

$ which -a curl
alias curl='curl -sSL'
        /usr/bin/curl
        /proc/cygdrive/c/.../cygwin32/bin/curl
        /proc/cygdrive/c/WINDOWS/System32/curl
$ man -awW curl		# -W also shows .../man/cat#/ pages
/usr/man/man1/curl.1.gz
/proc/cygdrive/c/.../cygwin32/usr/share/man/man1/curl.1.gz
$ whereis curl
curl: /usr/bin/curl.exe /usr/include/curl
/proc/cygdrive/c/.../cygwin32/bin/curl.exe
/proc/cygdrive/c/WINDOWS/System32/curl.exe /usr/share/man/man1/curl.1.gz

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Unexpected output from curl and wttr.in
  2019-12-22 12:35         ` Brian Inglis
@ 2019-12-22 12:51           ` Marco Atzeri
  2019-12-24  9:20             ` Mike MacEachern
  0 siblings, 1 reply; 10+ messages in thread
From: Marco Atzeri @ 2019-12-22 12:51 UTC (permalink / raw)
  To: cygwin

Am 22.12.2019 um 07:00 schrieb Brian Inglis:
> On 2019-12-20 19:13, Marco Atzeri wrote:
>> Am 20.12.2019 um 23:42 schrieb Mike MacEachern:
>>> On 12/20/2019 2:36 PM, Marco Atzeri wrote:
>>>> Am 20.12.2019 um 17:29 schrieb Csaba Raduly:
>>>>> On Thu, Dec 19, 2019 at 3:10 PM Mike MacEachern wrote:
> 
> Useful path search diagnostic commands:
> 
> $ which -a curl
> alias curl='curl -sSL'
>          /usr/bin/curl
>          /proc/cygdrive/c/.../cygwin32/bin/curl
>          /proc/cygdrive/c/WINDOWS/System32/curl
> $ man -awW curl		# -W also shows .../man/cat#/ pages
> /usr/man/man1/curl.1.gz
> /proc/cygdrive/c/.../cygwin32/usr/share/man/man1/curl.1.gz
> $ whereis curl
> curl: /usr/bin/curl.exe /usr/include/curl
> /proc/cygdrive/c/.../cygwin32/bin/curl.exe
> /proc/cygdrive/c/WINDOWS/System32/curl.exe /usr/share/man/man1/curl.1.gz
> 

sure Mike,
but none of these will work if you are biased
to think that other problems are around

https://cygwin.com/acronyms/#PEBCAK

is the biggest ostacle to any debugging

Regards
Marco


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Unexpected output from curl and wttr.in
  2019-12-22 12:51           ` Marco Atzeri
@ 2019-12-24  9:20             ` Mike MacEachern
  2019-12-25 22:20               ` Andrey Repin
  0 siblings, 1 reply; 10+ messages in thread
From: Mike MacEachern @ 2019-12-24  9:20 UTC (permalink / raw)
  To: cygwin

On 12/22/2019 6:21 AM, Marco Atzeri wrote:
> Am 22.12.2019 um 07:00 schrieb Brian Inglis:
>> On 2019-12-20 19:13, Marco Atzeri wrote:
>>> Am 20.12.2019 um 23:42 schrieb Mike MacEachern:
>>>> On 12/20/2019 2:36 PM, Marco Atzeri wrote:
>>>>> Am 20.12.2019 um 17:29 schrieb Csaba Raduly:
>>>>>> On Thu, Dec 19, 2019 at 3:10 PM Mike MacEachern wrote:
>>
>> Useful path search diagnostic commands:
>>
>> $ which -a curl
>> alias curl='curl -sSL'
>>          /usr/bin/curl
>>          /proc/cygdrive/c/.../cygwin32/bin/curl
>>          /proc/cygdrive/c/WINDOWS/System32/curl
>> $ man -awW curl        # -W also shows .../man/cat#/ pages
>> /usr/man/man1/curl.1.gz
>> /proc/cygdrive/c/.../cygwin32/usr/share/man/man1/curl.1.gz
>> $ whereis curl
>> curl: /usr/bin/curl.exe /usr/include/curl
>> /proc/cygdrive/c/.../cygwin32/bin/curl.exe
>> /proc/cygdrive/c/WINDOWS/System32/curl.exe /usr/share/man/man1/curl.1.gz
>>
> 
> sure Mike,
> but none of these will work if you are biased
> to think that other problems are around
> 
> https://cygwin.com/acronyms/#PEBCAK
> 
> is the biggest ostacle to any debugging
> 
> Regards
> Marco
> 
> 
Huh?  I thought we solved this just by installing the Cygwin native
version of curl.  Nothing else required, by simply installing Cygwin's
own curl, the Windows version is automatically not used by default,
therefore no other work was required.


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Unexpected output from curl and wttr.in
  2019-12-24  9:20             ` Mike MacEachern
@ 2019-12-25 22:20               ` Andrey Repin
  0 siblings, 0 replies; 10+ messages in thread
From: Andrey Repin @ 2019-12-25 22:20 UTC (permalink / raw)
  To: Mike MacEachern, cygwin

Greetings, Mike MacEachern!

> Huh?  I thought we solved this just by installing the Cygwin native
> version of curl.  Nothing else required, by simply installing Cygwin's
> own curl, the Windows version is automatically not used by default,
> therefore no other work was required.

which -a curl


-- 
With best regards,
Andrey Repin
Thursday, December 26, 2019 1:00:12

Sorry for my terrible english...


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-12-25 22:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-19 14:36 Unexpected output from curl and wttr.in Mike MacEachern
2019-12-19 19:48 ` Marco Atzeri
2019-12-20 18:20 ` Csaba Raduly
2019-12-21  1:21   ` Marco Atzeri
2019-12-21  2:13     ` Mike MacEachern
2019-12-21  3:04       ` Marco Atzeri
2019-12-22 12:35         ` Brian Inglis
2019-12-22 12:51           ` Marco Atzeri
2019-12-24  9:20             ` Mike MacEachern
2019-12-25 22:20               ` Andrey Repin

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