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

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

[Octave-bug-tracker] [bug #60555] Behavior of strcat in Octave is differ


From: anonymous
Subject: [Octave-bug-tracker] [bug #60555] Behavior of strcat in Octave is different of the behavior in Matlab
Date: Sat, 8 May 2021 05:43:23 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0

URL:
  <https://savannah.gnu.org/bugs/?60555>

                 Summary: Behavior of strcat in Octave is different of the
behavior in Matlab
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sat 08 May 2021 09:43:20 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Thomas Stein
        Originator Email: thomas.stein@steinisoft.de
             Open/Closed: Open
                 Release: 6.2.0
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

If I use strcat() in Matlab it don't ignore whitespaces. But in Octave
Whitespaces will be ignored. 

If I use for example the code:


strcat("Hello, ", "how are you?", " ", "Nice weather today!")


In Matlab the result is:

"Hello how are you? Nice weather today!"


And in Octave the result is:

"Hellohow are you?Nice weather today!"


It is correctly documented, that white spaces will be removed in Octave with
strcat(). But if people use Matlab and Octave and need a compatibility it is
not given in that case. In my case I try to generate C++ code with Octave and
Matlab and need a compatibility. In the string handling some points are not
one to one compatiple between Matlab and Octave.

I think that point could be an improvement.






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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