79638578

Date: 2025-05-26 08:31:15
Score: 1.5
Natty:
Report link

What fixed the problem for me was adding this line:

C(const char *s) {
  std::locale::global(std::locale("C"));
  std::fstream f(s);
  double d;
  f >> d;
  std::cout << d;
  f >> d;
  std::cout << d;
}

I suspect that gtk might be modifiying locale itself after the application is launched so I have to correct it.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): What fix
  • Low reputation (1):
Posted by: l1ivi1l