User forums > Using Code::Blocks

fscanf and numbers

<< < (2/2)

Belgabor:
Ah, ok. Then I have no experience, but a quick look at my C reference showed me 'setlocale'. But I have absolutely no idea if this interferes with GTK or whether there is a supposed (other) more correct way in GTK.

Jenna:

--- Quote from: os.555 on May 01, 2008, 11:44:37 am ---I somehow changed the settings in Code::Blocks (I honestly dont know how..) and now fscanf and fprintf functions represent the double numbers with comma instead with point [...]

--- End quote ---

Did you put something in the environment variables (for example "LC_ALL=xx.XX") in "Settings => Environment... => Environment variables" ?

os.555:

--- Quote from: jens on May 02, 2008, 07:38:20 am ---Did you put something in the environment variables (for example "LC_ALL=xx.XX") in "Settings => Environment... => Environment variables" ?

--- End quote ---

I didn't change anything in settings or anywhere else in Code::Blocks - I just change the code in my .c files. And in Settings => Environment I don't have anything like Environment variables. I use version 8.02

os.555:

--- Quote from: Belgabor on May 02, 2008, 12:54:23 am ---Then I have no experience, but a quick look at my C reference showed me 'setlocale'. But I have absolutely no idea if this interferes with GTK or whether there is a supposed (other) more correct way in GTK.

--- End quote ---

Thanks a lot - it works. I just put setlocale(LC_NUMERIC,"English") to my code and now I have all number right:)

Navigation

[0] Message Index

[*] Previous page

Go to full version