octave-maintainers
[Top][All Lists]
Advanced

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

Re: release 3.0.2 again


From: Vic Norton
Subject: Re: release 3.0.2 again
Date: Sun, 31 Aug 2008 15:38:53 -0400

I have run Thomas Treichl's patched version of Octave.app 3.0.2 from BBEdit. The patch cures the load_path problem I reported in https://www-old.cae.wisc.edu/pipermail/help-octave/2008-August/ 010660.html

Regards,

Vic

On Aug 30, 2008, at 2:54 PM, Thomas Treichl wrote:

Hi,

it took me a while (like always ;) but finally I found the origin of that problem. There has been a change to load-path.cc from Octave version 3.0.0 to 3.0.1 from

  static void
  maybe_add_path_elts (std::string& path, const std::string& dir)
  {
    std::string tpath = genpath (dir);

    if (! tpath.empty ())
      path += dir_path::path_sep_str + tpath;
  }

into

  static void
  maybe_add_path_elts (std::string& path, const std::string& dir)
  {
    std::string tpath = genpath (dir);

    if (! tpath.empty ())
      {
        if (path.empty ())
          path = tpath;
        else
          path += dir_path::path_sep_str + tpath;
      }
  }

With this new function the '--path' option from command line does not work anymore in 3.0.1 and 3.0.2 on my system. I replaced that new function in the 3.0.1 and 3.0.2 sources with the function from the 3.0.0 sources and recreated the binaries of Octave.app once again. Both (3.0.1 and 3.0.2) then accepted the '--path' option correctly.

Maybe this also addresses Vic's problem who found out another strange path problem at startup (but I'm not sure about this as I don't have any BBedit available)

https://www-old.cae.wisc.edu/pipermail/help-octave/2008-August/ 010660.html

Could we revert the change of maybe_add_path_elts for the 3.0.3 version and use the 3.0.0 function once again?

Thanks and regards

  Thomas



reply via email to

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