public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Re: Wrong character set in Cofiguration Tool
       [not found] <51C0AD11.30603@web.de>
@ 2013-06-18 19:02 ` Uwe Kindler
  2013-06-18 22:13   ` Sergei Gavrikov
  0 siblings, 1 reply; 3+ messages in thread
From: Uwe Kindler @ 2013-06-18 19:02 UTC (permalink / raw)
  To: ecos-discuss; +Cc: Fabian.Buehler

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
>

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

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

* Re: [ECOS] Re: Wrong character set in Cofiguration Tool
  2013-06-18 19:02 ` [ECOS] Re: Wrong character set in Cofiguration Tool Uwe Kindler
@ 2013-06-18 22:13   ` Sergei Gavrikov
  2013-06-19  6:57     ` Buehler, Fabian
  0 siblings, 1 reply; 3+ messages in thread
From: Sergei Gavrikov @ 2013-06-18 22:13 UTC (permalink / raw)
  To: Uwe Kindler; +Cc: ecos-discuss, Fabian.Buehler

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

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

* RE: [ECOS] Re: Wrong character set in Cofiguration Tool
  2013-06-18 22:13   ` Sergei Gavrikov
@ 2013-06-19  6:57     ` Buehler, Fabian
  0 siblings, 0 replies; 3+ messages in thread
From: Buehler, Fabian @ 2013-06-19  6:57 UTC (permalink / raw)
  To: 'Sergei Gavrikov', Uwe Kindler; +Cc: ecos-discuss

Hi,
Sergei you're right that's the problem and also the solution! For me it worked to set an environment variable called "LC_ALL" and set the value to "C"! I did that in windows but I think the result using the cygwin bash is the same!


Regards Fabian



-----Original Message-----
From: Sergei Gavrikov [mailto:sergei.gavrikov@gmail.com]
Sent: Wednesday, June 19, 2013 12:13 AM
To: Uwe Kindler
Cc: ecos-discuss@sourceware.org; Buehler, Fabian
Subject: Re: [ECOS] Re: Wrong character set in Cofiguration Tool

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
>

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

end of thread, other threads:[~2013-06-19  6:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <51C0AD11.30603@web.de>
2013-06-18 19:02 ` [ECOS] Re: Wrong character set in Cofiguration Tool Uwe Kindler
2013-06-18 22:13   ` Sergei Gavrikov
2013-06-19  6:57     ` Buehler, Fabian

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