delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/01/13/14:52:46

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:content-type:mime-version:subject:from
:in-reply-to:date:content-transfer-encoding:message-id
:references:to; q=dns; s=default; b=ehNuQzDZ47yxRCqSWThXPZMLsWye
OxJnPVeL1h1OjPoKngNoHLCyykbDTZWepPqspvKyE2uxP3V7M4jL7ZV/d0FzSbOj
4q4AsqIAY8iP1IJthVnniovGkM8D7yP/K2IjG5VPuKDm27/ZJ+gwqukEOhL9V3y0
ODCldpRHv5/gPb4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:content-type:mime-version:subject:from
:in-reply-to:date:content-transfer-encoding:message-id
:references:to; s=default; bh=PUF+2VTztZ4MKPMX29YVPUw7IK8=; b=yX
XNjc0dC9I8fX/kyeruxHvxHOPDfo/Y3QBUZnyYtggVAr5hF50UPHpg4OTBxENtcB
t2LKI4YYCFQCQIbFlEf6vFgj2uD6JREpowhes5ke/Qah+12en24JQrRQmTxVodPK
MdI03bODUDOu4gaJrEPJCaXvkjZ+jiLN7LgczGXIw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=pale, sk:crobert, D*gilsongraphics.com, crobertsgilsongraphicscom
X-HELO: etr-usa.com
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
Subject: Re: Quotes changed to odd characters in gcc error msgs
From: Warren Young <wyml AT etr-usa DOT com>
In-Reply-To: <7ddb3b6ed96c4cabe49cb1fb5559c32b@mail.gmail.com>
Date: Wed, 13 Jan 2016 12:52:19 -0700
Message-Id: <B1DD8A98-A6CE-4FBA-8CDD-5A9DE681597A@etr-usa.com>
References: <7ddb3b6ed96c4cabe49cb1fb5559c32b AT mail DOT gmail DOT com>
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u0DJqggK002602

On Jan 13, 2016, at 8:05 AM, Chuck Roberts <croberts AT gilsongraphics DOT com> wrote:
> 
> My TERM variable says "cygwin”.

That means you’re running under the built-in Windows console, not MinTTY, which means you don’t get UTF-8 support by default.

You could try “chcp 65001” but the real fix is to use MinTTY.  MinTTY has *many* features not available in the Windows Console.  Even the vastly upgraded version included with Windows 10 is a pale wannabe compared to MinTTY.  man mintty for details.

> 2) I'm using PSPad to edit some of my .C files.

Careful, there.  Unix is traditionally case-sensitive, and some programs coming from that tradition treat .C files differently from .c files.  One such tool is gcc, which will interpret your file as C++ even if you invoke it as gcc instead of g++.

GNU make also assumes .C is C++.

C++ is not 100% forwards compatible with C:

  https://en.wikipedia.org/wiki/Compatibility_of_C_and_C%2B%2B

On Windows, NTFS is case-insensitive by default, but also case-preserving, so saving a file as *.C will invoke this automatic C++ treatment under Cygwin.

> the directory listing of files using 'ls -l' has the occasional
> file concatenated with the next file, like a carriage return is missing
> somewhere.

This may be a Windows Console bug, too.  Again, switch to MinTTY.  It’s the default for a reason.
--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019