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

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

[Octave-bug-tracker] [bug #41326] textread gives unnecessary warning on


From: H. G.
Subject: [Octave-bug-tracker] [bug #41326] textread gives unnecessary warning on umlauts
Date: Thu, 23 Jan 2014 21:13:09 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0

URL:
  <http://savannah.gnu.org/bugs/?41326>

                 Summary: textread gives unnecessary warning on umlauts
                 Project: GNU Octave
            Submitted by: hardy
            Submitted on: Do 23 Jan 2014 21:13:08 GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.0
        Operating System: Any

    _______________________________________________________

Details:

This is how to produce the behavior. It happend on the current release 3.8.0.
of octave:

* create a textfile "test.csv" that simply has one umlaut character in it. For
example ü
* use textread to import this into an octave variable: a =
textread('test.csv','%s')
* You will get a warning message "warning: range error for conversion to
character value"
* Also the text will properly be imported. The variable a does contain the
umlaut afterwards.

So I assume that the given warning is unnecesssary. Octave does import umlauts
properly.

Additionally the similar command strread will not give this warning on the
same job. b = strread('ü','%s') just executes without any warning, and the
umlaut is also properly read.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41326>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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