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

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

[Octave-bug-tracker] [bug #54893] using strrep with extended ASCII codes


From: anonymous
Subject: [Octave-bug-tracker] [bug #54893] using strrep with extended ASCII codes inserts extra characters
Date: Wed, 24 Oct 2018 12:49:50 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36

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

                 Summary: using strrep with extended ASCII codes inserts extra
characters
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 24 Oct 2018 04:49:48 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Uli Wortmann
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Using

s1 = N43°38'19.39"

and then calling

h=strrep(s1,"\xB0","\x3A")

correctly replaces the degree symbol with a colon, however, it inserts an
additional (non printing) character before the colon

Current result for h is

N43�:38'19.39"

Expected result would be

N43:38'19.39"




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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