Skip to content

Conversation

@hristost
Copy link

This pull requests fixes a crash that would occur if a layer name used non-ascii characters and layerNameCString would become NULL.

The C string will work as before for ASCII names, so this commit does not break compatibility. However, in the PSD spec I could not find any mention of how non-ascii layer names should be handled. It is entirely possible that this specific version of the file format did not support unicode layer names. Photoshop 2021 and its iPad counterpart seem to read layer names in a different encoding, but that could be because they are only working with what was available in the file spec PSDWriter uses. Procreate on the iPad reads unicode layer names without any issues.

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.

1 participant