User forums > Help

Problem with accentuated characters in build messages window

(1/2) > >>

skirby:
Hello,

I use Visual Studio 2005 compiler (french version) with Code::Blocks.
I have a problem with accentuated words as you can see below:

A simple example with one error:

--- Code: ---#include <stdio.h>
#include <stdlib.h>

int main()
{
a = 1;
printf("Hello world!\n");
return 0;
}

--- End code ---

And the error message from the compiler:

--- Quote ---:: === Test, Debug ===
main.c:6: error C2065: 'a'ÿ: identificateur non d‚clar‚
:: === Build finished: 1 errors, 0 warnings ===

--- End quote ---

Is there a way to display accentuated characters with Code::Blocks or is it a problem with Visual Studio?

Thanks in advance and have a nice day.

Ceniza:
You didn't add a type to the variable. It should be:


--- Code: ---int a = 1;
--- End code ---

It's funny to see VC says it's named 'a'ÿ. Is there anything special about that 'a'?

skirby:
Hello Ceniza,

I know that my variable was not declared  :wink:
The aim was to make VS compiler display an error message in order to show you the problem with accentuated character like d‚clar‚ instead of déclaré

skirby:
I have post a bug report on BerliOS.
I hope this problem could be fix in a near futur  :)

Here is another example in order to make you understand the problem:

--- Code: ---#include <iostream>

using namespace std;

int main()
{
int a;
a < 1;
cout << "Hello world!" << endl;
return 0;
}

--- End code ---

With french compiler:

--- Quote ---:: === TestFrench, Debug ===
main.cpp:8: warning C4552: '<'ÿ: op‚rateur sans effetÿ; op‚rateur avec effet secondaire attendu
:: === Build finished: 0 errors, 1 warnings ===

--- End quote ---
In french, I should have had:

--- Quote ---main.cpp:8: warning C4552: '<' : opérateur sans effet; opérateur avec effet secondaire attendu

--- End quote ---

with english compiler:

--- Quote ---main.cpp:8: warning C4552: '<' : operator has no effect; expected operator with side-effect
:: === Build finished: 0 errors, 1 warnings ===

--- End quote ---

For information, I have reproduce this behavior with the build SVN 4185 (and many older version)
I also reproduced this on Windows 2000 sp4 and Windows XP sp2.

rickg22:
I think this is a variant of the "accentuated characters in paths" bug.

Navigation

[0] Message Index

[#] Next page

Go to full version