[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62780] oruntests looks in file without respec
From: |
Colin Macdonald |
Subject: |
[Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config |
Date: |
Sat, 23 Jul 2022 17:04:40 -0400 (EDT) |
Follow-up Comment #7, bug #62780 (project octave):
Here's MWE:
>> d = "/home/cbm/src/octave-doctest.git/test_extra/test_encoding"
>> s = dir_encoding (d)
s = utf-8
>> cd(d)
>> cd()
>> s = dir_encoding (d)
s = windows-1252
Is this how `dir_encoding` is supposed to work? The docs say "Query ... the
ENCODING that is used for reading m-files in DIR."
I'm just learning all this but, it seems to me either:
1. `dir_encoding` should "visit" the directory
or
2. `help dir_encoding` should explain that it is something theoretical like
"what encoding we could try unless there is a .oct-config" and only becomes
concrete if you've visited (via cd or addpath or whatever).
Personally, I think 1 sounds like principle of least surprise, but maybe I'm
not seeing the whole picture here?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62780>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Colin Macdonald, 2022/07/18
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Markus Mützel, 2022/07/18
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Colin Macdonald, 2022/07/18
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Colin Macdonald, 2022/07/18
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Markus Mützel, 2022/07/19
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Markus Mützel, 2022/07/20
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Colin Macdonald, 2022/07/23
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config,
Colin Macdonald <=
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Colin Macdonald, 2022/07/23
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Markus Mützel, 2022/07/24
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Colin Macdonald, 2022/07/24
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Markus Mützel, 2022/07/25