Re: error: converting to execution character set: Illegal byte sequence

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 8, 2013 at 8:29 AM, Josef <planeta@xxxxxxx> wrote:
> Hello all!
>
> Below is snippet of function, when compiled by gcc, I have following error:
>
> error: converting to execution character set: Illegal byte sequence
> error: duplicate case value
> error: previously used here
>
> 1st and 2nd error is connected with line:
> case   L'„':
> 3rd error is connected with line
> case   0:
>
> AFAIK, it seems that compiler has problem with expression case   L'„': and
> it will convert it to 0 which collidate with case 0: line.
> How should I retype this problematic line?


You need to know the character set that you are using, and you need to
specify it using the -finput-charset option.  The default is UTF-8,
and I'm guessing that you are not using UTF-8 above.

Ian





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux