coin-or / Clp

COIN-OR Linear Programming Solver
Other
396 stars 82 forks source link

Allow FILE * as OsiClpSolverInterface::readLp input to allow e.g. unicode file names on Windows #211

Closed christoph-cullmann closed 2 years ago

christoph-cullmann commented 2 years ago

I am using OsiClpSolverInterface to read my LP.

Unfortunately it has only a readLp interface that takes a const char*.

On Windows that will not properly allow to pass unicode filenames.

My fix for this is to just allow to pass some pre-opened FILE handle.

Below my patch for this.

fp_input.diff.txt

Would such a change be acceptable upstream or is there a better solution?

@jjhforrest

christoph-cullmann commented 2 years ago

Thanks for taking care, current master has now the needed stuff!