-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mask control characters in filenames #118
Open
Larhzu
wants to merge
7
commits into
master
Choose a base branch
from
mask_cntrl_chars
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Commits on May 22, 2024
-
Add tuklib_mbstr_nonprint to mask non-printable characters
In multibyte locales, some control characters are multibyte too, for example, terminals interpret C1 control characters (U+0080 to U+009F) that are two bytes as UTF-8. Thus, multibyte character sets have to be handled. Instead of checking for control characters with iswcntrl(), this uses iswprint() to detect printable characters. This is much stricter. Gnulib's quotearg would do a lot more but I hope such a thing isn't needed here. Thanks to Ryan Colyer for the discussion about the problems of the earlier single-byte-only method. Thanks to Christian Weisgerber for reporting a bug in an earlier version of this code. Thanks to Jeroen Roovers for a typo fix.
Configuration menu - View commit details
-
Copy full SHA for dbcb277 - Browse repository at this point
Copy the full SHA dbcb277View commit details -
Call tuklib_mask_nonprint() on filenames and also on a few other strings from the command line too. The lack of this feature has been listed in TODO since 2009: 5f6dddc
Configuration menu - View commit details
-
Copy full SHA for bc51383 - Browse repository at this point
Copy the full SHA bc51383View commit details -
This prepares for tuklib_mask_nonprint() from tuklib_mbstr_nonprint.c. It has locale-specific behavior (LC_CTYPE).
Configuration menu - View commit details
-
Copy full SHA for 479b568 - Browse repository at this point
Copy the full SHA 479b568View commit details -
Configuration menu - View commit details
-
Copy full SHA for a5e9c3f - Browse repository at this point
Copy the full SHA a5e9c3fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b51612 - Browse repository at this point
Copy the full SHA 7b51612View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02b0df8 - Browse repository at this point
Copy the full SHA 02b0df8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ad4a25 - Browse repository at this point
Copy the full SHA 3ad4a25View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.