#19131: wxJoin wxSplit bug
---------------------+-------------------------------------
Reporter: deko9 | Owner: Vadim Zeitlin <vadim@…>
Type: defect | Status: closed
Priority: normal | Milestone:
Component: base | Version: 3.1.4
Resolution: fixed | Keywords: wxJoin wxSplit
Blocked By: | Blocking:
Patch: 1 |
---------------------+-------------------------------------
Changes (by Vadim Zeitlin <vadim@…>):
* owner: => Vadim Zeitlin <vadim@…>
* status: confirmed => closed
* resolution: => fixed
Comment:
In [changeset:"1035ae27a7a5d323963cf5249d29fe3112c5ee13/git-wxWidgets"
1035ae27/git-wxWidgets]:
{{{
#!CommitTicketReference repository="git-wxWidgets"
revision="1035ae27a7a5d323963cf5249d29fe3112c5ee13"
Make wxSplit(wxJoin()) idempotent for string ending with escape
Previously, splitting a string obtained by joining together array
with (any but last) elements ending in the escape character (normally
the backslash), didn't recover the original array because the separator
character following it in the resulting string was considered to be
escaped by wxSplit().
Fix this by escaping the trailing escape character itself.
Add a test confirming that this works as expected now, document this
behaviour and also slightly simplify wxSPlit() logic.
See
https://github.com/wxWidgets/wxWidgets/pull/2311
Closes #19131.
}}}
--
Ticket URL: <
https://trac.wxwidgets.org/ticket/19131#comment:3>