[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: |
Fri, 30 Jul 2021 15:27:37 -0400 (EDT) |
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 #17, bug #59702 (project octave):
Thanks!
It would be better to use "unwind_action" to handle the failure of dlmread
because of exception.
char* old = std::setlocale(LC_ALL, 0);
std::string sav = old ? old : "";
std::setlocale(LC_ALL, "C");
unwind_action act ([&sav](){std::setlocale(LC_ALL, sav.c_str ());});
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59702>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/