[Top][All Lists]

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

Re: [Bug-glpk] GLPK locale bug

From: Andrew Makhorin
Subject: Re: [Bug-glpk] GLPK locale bug
Date: Wed, 13 Dec 2017 16:23:34 +0300

On Wed, 2017-12-13 at 12:09 +0000, Moritz Emanuel Beber wrote:
> Hello,
> I found a problem in GLPK where the problem write function is locale
> aware but the corresponding read function is not. This can lead to
> situations where in the same program I cannot restore a model. I have
> attached a minimal example that shows the error.
> Best,
> Moritz

Thank you for your bug report.

Which error message glp_read_prob writes on stdout/stderr?

Please note that glpk does not support using 'decimal comma' instead of
'decimal point' in text files, so if the error is caused by this, you
probably need to call setlocale(LC_NUMERIC, "en_US.UTF-8") to restore
default behavior.

Andrew Makhorin

reply via email to

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