[PATCH] Tweak the way default character set is specified.

Allan Odgaard lists+pass at simplit.com
Wed Jul 17 13:45:24 CEST 2019


On 17 Jul 2019, at 13:07, Jason A. Donenfeld wrote:

> - graph == punct|alnum ? or is it missing things?

Having a hard time finding the POSIX definition, but GNU grep explicitly 
says that `[:graph:]` is equivalent to `[:alnum:]` plus `[:punct:]`: 
https://www.gnu.org/software/grep/manual/html_node/Character-Classes-and-Bracket-Expressions.html

Using `man ispunct` and `man isgraph` on macOS indicates that 
`[:print:]` is `[:graph:]` minus `[:alnum:]`.

A quick test confirms this:

	% for ch in {0..127}; do printf "\\x$(printf '%02x' $ch)"; done|tr -cd 
'[:alnum:][:punct:]'; echo
	!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~

	% for ch in {0..127}; do printf "\\x$(printf '%02x' $ch)"; done|tr -cd 
'[:graph:]'; echo
	!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~

> - There was some mention in the thread about toybox having issues with 
> those?

The `tr.c` included with BusyBox says it comes from Minix, so presumably 
everything borrowing from Minix would have the same issue.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20190717/2184437e/attachment.html>


More information about the Password-Store mailing list