non-printable characters
Pierre Peronnet
pierre.peronnet at gmail.com
Wed Jul 11 23:41:53 CEST 2018
Hello everyone,
I got a error message from pass command, so here i the explanation.
## Context
On MacOS, last version from brew:
```
$ pass --version
============================================
= pass: the standard unix password manager =
= =
= v1.7.2 =
= =
= Jason A. Donenfeld =
= Jason at zx2c4.com =
= =
= http://www.passwordstore.org/ =
============================================
```
I migrated my password from another password manager which managed my password with some non utf-8 characters.
Then I found that the `pass` displayed `sed: RE error: illegal byte sequence`
Digging more i found that the `tree` does not print some characters, like emojis for example.
## How to reproduce
```
$ pass insert test/🏠
Enter password for test/🏠:
Retype password for test/🏠:
[master cd58096] Add given password for test/🏠 to store.
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 "test/\360\237\217\240.gpg »
```
```
$ pass test
test
sed: RE error: illegal byte sequence
```
## Suggested patch
Use the `-N` parameter for `tree` which allows to force display characters as they are.
We could also use `-q` to replace non-printable characters by `?`.
What do you think about that?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: print-non-printable.patch
Type: application/octet-stream
Size: 1190 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20180711/4dcf34a8/attachment.obj>
-------------- next part --------------
Pierre Péronnet
pierre.peronnet at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20180711/4dcf34a8/attachment.asc>
More information about the Password-Store
mailing list