Skip to content

Commit 6e168f3

Browse files
committed
also perform system-dependent initialization in the interpreter constructor
* interpreter.cc (interpreter::interpreter): Call sysdep_init here. * octave.cc (application::init): Update comment.
1 parent fb027f5 commit 6e168f3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

libinterp/corefcn/interpreter.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,11 @@ interpreter::interpreter (application *app_context)
487487
sys::env::putenv ("LC_NUMERIC", "C");
488488
sys::env::putenv ("LC_TIME", "C");
489489

490+
// Perform system-dependent initialization here in case it has not
491+
// already been executed (for example, by the application
492+
// constructor).
493+
sysdep_init ();
494+
490495
// Initialize the default floating point unit control state.
491496
octave_set_default_fpucw ();
492497

libinterp/octave.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,8 @@ application::init ()
438438
&& ! m_options.persist ()
439439
&& ! m_options.traditional ());
440440

441-
// This should probably happen early.
441+
// Perform system-dependent initialization here in case it is needed
442+
// prior to constructing the interpreter object.
442443
sysdep_init ();
443444
}
444445

0 commit comments

Comments
 (0)