Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6198389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:59:20+00:00 2026-05-24T03:59:20+00:00

I have some questions, but I can´t find straight answer anywhere. So, basically, I

  • 0

I have some questions, but I can´t find straight answer anywhere.

So, basically, I know what locale is, I know how to use (set) it, but what I dont know is

  1. how is work behind the scene, and I would very like to know it.
    So, when I use functions for IO, lets say for example scanf do float, when I need to decide whether country use decimal point or comma (I am actually from decimal comma country :)),

  2. does scanf function “look” to check the current locale?

  3. But if I doesn´t set it in my code, does it by default creates some standard locale itself, OR does it get it from OS?

  4. For example in the part of code when you get handle to console for stdout stderr and stdin?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T03:59:21+00:00Added an answer on May 24, 2026 at 3:59 am

    By default your program will have the C locale.

    When you run setlocale(LC_ALL,""); you will set the locale from the outside environment (or you can set just parts LC_*).

    By calling setlocale(LC_ALL,"specific_locale"); you will set the specific locale.

    All I/O functions should follow the current locale (standard C I/O functions).

    The behind-the-code behaviour depends on the operating system and compiler you are using.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there have been some similar questions to this, but they haven't helped
Sorry this is such a basic question, but I can't find a straight answer
I have some questions about Qt creator. Under Win XP, I can use autocomplete
I have seen some related questions but none focusing on the specific problem I
There might be similar questions but I still have some parts that I couldn't
I've read some documentation on how Adaboost works but have some questions regarding it.
I am trying to think data in terms of sets but have some questions
I am using gmap3 script to show clustering markers, but i have some questions
There have been some similar questions asked regarding Grid views, but none have been
I have Used Dojo 1.0, but I have some version related questions: When will

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.