User forums > General (but related to Code::Blocks)

² character bug

<< < (2/4) > >>

XayC:
I can confirm this and I'm going to add some details.
To reproduce this bug create a new file and insert (copy-paste is ok) the ² character and save it: Code::Blocks will start using 100% CPU and you have to kill it. Note that this happens only if the ² character is the first one in the file.

And I agree with Jens, this looks like a file-encoding problem.

XayC

pxnet:

--- Quote from: XayC on June 28, 2008, 04:16:06 pm ---Note that this happens only if the ² character is the first one in the file.

--- End quote ---

For my part, I just have to put it anywhere in the file in order it to crash.

Jenna:

--- Quote from: XayC on June 28, 2008, 04:16:06 pm ---I can confirm this and I'm going to add some details.
To reproduce this bug create a new file and insert (copy-paste is ok) the ² character and save it: Code::Blocks will start using 100% CPU and you have to kill it. Note that this happens only if the ² character is the first one in the file.

--- End quote ---
I cannot confirm, neither on w2k nor on debian, even if  "²" is the first character in file.


--- Quote from: pxnet on June 28, 2008, 02:02:37 pm ---I was in "defaut" encoding, I just tested with ISO-8859-1, UTF-8,  unicode default, and that bugs as well.

--- End quote ---

What's your default encoding ? It depends on your windows and/or on your C::B settings.
Are there any other special (non-ascii) characters in file (cyrillic, chinese ...) ?

XayC:
I did some more tests and I have this problem only if the ² is the first character in the file, and I have it no matter what encoding I use (default WINDOWS-1252). If I put any other usual character before the ² it works.


--- Quote from: jens on June 28, 2008, 05:48:59 pm ---Are there any other special (non-ascii) characters in file (cyrillic, chinese ...) ?

--- End quote ---
No, depending on the test I did, either only the ² character or the ² character and some 'a' characters.

Since I can reproduce it I'm going to debug CB and try to find out what is causing this problem.

Regards, XayC

Biplab:
I can confirm this bug. But encoding handling code is not the culprit here as the file is saved properly.

Disable Code Completion plugin. It's causing this lock-up.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version