octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #59702] dlmread performance


From: anonymous
Subject: [Octave-bug-tracker] [bug #59702] dlmread performance
Date: Wed, 27 Jan 2021 02:32:50 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:68.9) Gecko/20100101 Goanna/4.6 Firefox/68.9 Mypal/28.14.2

Follow-up Comment #14, bug #59702 (project octave):

Inspired by libstdc++ source[1] this may fix the bug:

At the beginning of 'dlmread' from libinterp/corefcn/dlmread.cc add the
following lines:

char* old = std::setlocale(LC_ALL, 0);
std::string sav = old ? old : "";
std::setlocale(LC_ALL, "C");


and at the end of the function add this line:

std::setlocale(LC_ALL, sav.c_str ());


[1]
https://github.com/gcc-mirror/gcc/blob/16e2427f50c208dfe07d07f18009969502c25dc8/libstdc%2B%2B-v3/config/locale/generic/c_locale.cc#L59

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59702>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]