Unexpected output from curl and wttr.in

Marco Atzeri marco.atzeri@gmail.com
Thu Dec 19 19:48:00 GMT 2019


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



More information about the Cygwin mailing list