Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new msgpack spec by default. #386

Merged
merged 6 commits into from Dec 5, 2019
Merged

Use new msgpack spec by default. #386

merged 6 commits into from Dec 5, 2019

Conversation

@methane
Copy link
Member

@methane methane commented Dec 5, 2019

Fixes #99

methane added 6 commits Dec 5, 2019
@methane methane merged commit 7e9905b into msgpack:master Dec 5, 2019
3 checks passed
3 checks passed
build
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@methane methane deleted the methane:msgpack-2.0 branch Dec 5, 2019

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.

This comment has been minimized.

@ThomasWaldmann

ThomasWaldmann Dec 5, 2019
Contributor

typo

@@ -135,4 +134,4 @@ def test_match():


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

This comment has been minimized.

@ThomasWaldmann

ThomasWaldmann Dec 5, 2019
Contributor

somehow makes more sense now. \o/

This comment has been minimized.

@ThomasWaldmann

ThomasWaldmann Dec 5, 2019
Contributor

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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants
You can’t perform that action at this time.