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

ansi C allows `.` and `_` to start a file name #3

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
3 participants
@garfieldnate
Contributor

garfieldnate commented Apr 22, 2015

Update the ANSI C filename portability checker to match the semantics
as stated in perlport. Fixes #1.

ansi C allows `.` and `_` to start a file name
Update the ANSI C filename portability checker to match the semantics
as stated in perlport. Fixes #1.
@ghost

This comment has been minimized.

ghost commented Jul 16, 2015

Bump.

@ghost

This comment has been minimized.

ghost commented Jul 16, 2015

POSIX says:

3.277 Portable Filename

A filename consisting only of characters from the portable filename character set.

Note:
Applications should avoid using filenames that have the <hyphen> character as the first character
since this may cause problems when filenames are passed as command line arguments.

3.278 Portable Filename Character Set

The set of characters from which portable filenames are constructed.

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
a b c d e f g h i j k l m n o p q r s t u v w x y z
0 1 2 3 4 5 6 7 8 9 . _ -

The last three characters are the <period>, <underscore>, and <hyphen> characters, respectively. See also Pathname.
@abraxxa

This comment has been minimized.

Owner

abraxxa commented Sep 21, 2016

I saw @karenetheridge pull-request #5 before this one and already applied it.

@abraxxa abraxxa closed this Sep 21, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment