Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@methane
Copy link
Member

@methane methane commented Dec 5, 2019

Fixes #99

@methane methane merged commit 7e9905b into msgpack:master Dec 5, 2019
@methane methane deleted the msgpack-2.0 branch December 5, 2019 12:34
object into raw type in old msgpack spec, instead of bin type in new msgpack spec.

In case of packer, use UTF-8 always. Storing other than UTF-8 is not recommended.
You can unpack old msgpack formatk using ``raw=True`` option.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo


def test_unicode():
assert unpackb(packb("foobar"), use_list=1) == b"foobar"
assert unpackb(packb(u"foobar"), use_list=1) == u"foobar"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

somehow makes more sense now. \o/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are there enough tests that check all "old msgpack" behaviour as well as all "new msgpack" behaviour (str, bytes, unicode).

esp. that using it the old way still works with the new code, when the right options are given.

borgbackup depends on old format and as people have that in their backup repositories, we can't change it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unpack should decode string types by default

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.