octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #60306] Error running files in a folder contai


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #60306] Error running files in a folder containing letter "č"
Date: Tue, 30 Mar 2021 14:14:24 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36 Edg/89.0.774.63

Follow-up Comment #18, bug #60306 (project octave):

Well, "umlaut a" isn't called "umlaut a" in German either (because it is a
different letter with a distinct sound from "a"). But it's still called
"umlaut a" internationally. Afaict, "č" is called "small Latin letter c with
caron":
https://www.compart.com/en/unicode/U+010D

Thanks again Dmitri for that information.

In the meantime, I believe I narrowed the issue down to
`canonicalize_file_name`. With the current folder set to a path with these
letters, I see the following:

>> canonicalize_file_name (".")
ans = D:\SVN\Octave\bug60306_non-ASCII\hü racunara\fgäööü škola
racunara


The actual path is 'D:/SVN/Octave/bug60306_non-ASCII/hü računara/fgäööü
škola računara'.

It looks like the result of gnulib's `canonicalize_file_name` replacements on
Windows is wrong for me in this case.

We have the following note in the source code:

      // On Windows, convert to locale charset before passing to
      // canonicalize_file_name, and convert back to UTF-8 after that.

      // FIXME: This only allows non-ASCII characters in the file or path
that
      // can be encoded in the locale charset.
      // Consider replacing this with std::filesystem::canonical once we
allow
      // using C++17.


@Tijana: What does `__locale_charset__` return on your system?


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60306>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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