chinedufn / psd

A Rust API for parsing and working with PSD files.
https://chinedufn.github.io/psd
Apache License 2.0
265 stars 40 forks source link

Fix parsing unicode string in 'luni' #37

Closed gyk closed 2 years ago

gyk commented 2 years ago

Fixes #34.

chinedufn commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Looks great thanks!