[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45976] ctime and asctime add a trailing newli
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #45976] ctime and asctime add a trailing newline character to the return value |
Date: |
Wed, 16 Sep 2015 10:41:21 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0 |
URL:
<http://savannah.gnu.org/bugs/?45976>
Summary: ctime and asctime add a trailing newline character
to the return value
Project: GNU Octave
Submitted by: None
Submitted on: Wed 16 Sep 2015 10:41:20 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: T Herzke
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.0
Operating System: GNU/Linux
_______________________________________________________
Details:
The functions "ctime" and "asctime" return a string representation of the time
argument.
The documentation of both functions suggests that there will be neither
leading nor trailing white space. Documentation excerpt:
ctime (time ())
=> "Mon Feb 17 01:15:06 1997"
However, the return value contains a newline as the last character.
Either the functions should be modified to not append the newline character,
or the documentation should be altered to indicate that the return values will
end in a newline.
To my knowledge, matlab does not implement these functions, so matlab
compatibility should not be a concern in resolving this issue.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45976>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #45976] ctime and asctime add a trailing newline character to the return value,
anonymous <=
- [Octave-bug-tracker] [bug #45976] ctime and asctime add a trailing newline character to the return value, Philip Nienhuis, 2015/09/16
- [Octave-bug-tracker] [bug #45976] ctime and asctime add a trailing newline character to the return value, John W. Eaton, 2015/09/16
- [Octave-bug-tracker] [bug #45976] ctime and asctime add a trailing newline character to the return value, Rik, 2015/09/16
- [Octave-bug-tracker] [bug #45976] ctime and asctime add a trailing newline character to the return value, Mike Miller, 2015/09/19
- [Octave-bug-tracker] [bug #45976] ctime and asctime add a trailing newline character to the return value, anonymous, 2015/09/20
- [Octave-bug-tracker] [bug #45976] ctime and asctime add a trailing newline character to the return value, anonymous, 2015/09/20
- [Octave-bug-tracker] [bug #45976] ctime and asctime add a trailing newline character to the return value, Mike Miller, 2015/09/20