Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Non-ASCII key names on MacOS #16

Closed
richardschneider opened this issue Dec 16, 2017 · 1 comment
Closed

Non-ASCII key names on MacOS #16

richardschneider opened this issue Dec 16, 2017 · 1 comment

Comments

@richardschneider
Copy link
Contributor

richardschneider commented Dec 16, 2017

Jenkins CI is failing on macos build. I suspect its an issue with js-datastore-fs and non-ASCII key names.

 Uncaught AssertionError: expected { Object (name, id) } to deeply equal { Object (name, id) }
      + expected - actual

       {
         "id": "QmYseKb5qsWa7cB5HKMEktsG6TfbYNx7yMrauNKY3mtvHx"
      -  "name": "tajné jméno"
      +  "name": "tajné jméno"
       }

at ks.findKeyById (test/keychain.spec.js:148:31)
at listKeys (src/keychain.js:246:7)

@diasdavid Should I write test and raise an issue?

See https://stackoverflow.com/questions/9757843/unicode-encoding-for-filesystem-in-mac-os-x-not-correct-in-python and nodejs/node#2165

@richardschneider
Copy link
Contributor Author

Working with different filesystems describes the issue and how to deal with it. Basically it is saying to use string.normalize whenever comparing file names.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant