public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Sergei Gavrikov <sergei.gavrikov@gmail.com>
To: Uwe Kindler <uwe_kindler@web.de>
Cc: ecos-discuss@sourceware.org, Fabian.Buehler@ametek.com
Subject: Re: [ECOS] Re: Wrong character set in Cofiguration Tool
Date: Tue, 18 Jun 2013 22:13:00 -0000	[thread overview]
Message-ID: <alpine.DEB.2.00.1306190109580.6176@sg-laptop> (raw)
In-Reply-To: <51C0AE69.9020306@web.de>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1822 bytes --]

On Tue, 18 Jun 2013, Uwe Kindler wrote:

> Hi Fabian,
> 
> I have no solution for this problem but I can confirm that it also
> exists on Windows 7. The problem occures for warnings and errors. Here
> is an example of console output with warnings:
> 
> cc1: warning: command line option ‘-Woverloaded-virtual’ is valid for
> C++/ObjC++ but not for C [enabled by default]
> cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC++ but
> not for C [enabled by default]
> 
> > Hi
> > The console output of the configuration tool prints out strange symbols.
> > It looks like that there is a wrong character set used! Has anybody an
> > idea how to fix that?
> > 
> > I'm running the configuration tool on Windows XP with cygwin!
> > 
> > Regards Fabian
 
Hi

That is just the quotes in UTF-8. Two examples below are true for Linux
and I hope this true for Cygwin environment too.

For LANG=en_US.utf8 and if terminal supports UNICODE you have to see

  % echo 'main(){return 0;}'>a.c
  % cc -Wall a.c
  a.c:1: warning: return type defaults to ‘int’

For standard "C" locale and for *any* terminal we see only ASCII (no
potential mess)

  % LC_ALL=C cc -Wall a.c
  a.c:1: warning: return type defaults to 'int'

If you set LANG variable properly and your terminal supports Unicode
then you have to see normal quotes, otherwise you will see some garbage
in output. So, try either to fix LANG variable or just use standard "C"
locale: append a line 'export LC_ALL=C' in your ~/.bashrc and re-login.

I do not sure about UTF-8 in Cygwin environment, but I hope LC_ALL=C
has to help.

Sergei

> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> 

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

  reply	other threads:[~2013-06-18 22:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <51C0AD11.30603@web.de>
2013-06-18 19:02 ` Uwe Kindler
2013-06-18 22:13   ` Sergei Gavrikov [this message]
2013-06-19  6:57     ` Buehler, Fabian

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=alpine.DEB.2.00.1306190109580.6176@sg-laptop \
    --to=sergei.gavrikov@gmail.com \
    --cc=Fabian.Buehler@ametek.com \
    --cc=ecos-discuss@sourceware.org \
    --cc=uwe_kindler@web.de \
    /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).