Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Why printf() does not care of my locale settings ?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Guilbert STABILO, post: 3892015"] Thanks to all for your contributions which made me understand how it works. I realized that I misunderstood the way the character were are sent to the terminal : the C program only sends a binary data which is interpreted by the receiving application depending (the terminal, a GUI ...) on its encoding configuration. Under Windows, I succeeded in changing the ANSI code page to Russian but I had to reboot the computer so the setting was applied. I found no way to do it at run time. I tried SetConsoleCP(1251) and SetConsoleOutputCP(1251) => the function returned OK but the setting was not effective. I am going to dig deeper on a Windows forum. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Why printf() does not care of my locale settings ?
Top