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

Fix parsing unicode string in 'luni' #37

Merged
merged 2 commits into from
Jul 27, 2022
Merged

Conversation

gyk
Copy link
Contributor

@gyk gyk commented Jul 13, 2022

Fixes #34.

@chinedufn
Copy link
Owner

chinedufn commented Jul 18, 2022

Sorry for the delay!

Could you please add a tiny PSD to the test fixtures and a test case that tries to get the layer name from that PSD that fails without this new change and passes with this new change?

After that I can merge this!


https://github.com/chinedufn/psd/tree/master/tests/fixtures

@gyk
Copy link
Contributor Author

gyk commented Jul 27, 2022

Hi, the test has been added. As I don't own the PSD, I had to crop it down to 1x1. Both null-terminated unicode string and one without null byte are present.

@chinedufn
Copy link
Owner

Looks great thanks!

@chinedufn chinedufn merged commit 3c13694 into chinedufn:master Jul 27, 2022
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.

Unicode string may have no paddings
2 participants