+
Skip to content

escape_backslashes should be used unconditionally #53

Open
@Artoria2e5

Description

@Artoria2e5

We currently have

gpp/src/gpp.c

Lines 3137 to 3141 in 8e6fe69

#ifdef WIN_NT
escape_backslashes(filename,&escapedfilename);
#else
escapedfilename = filename;
#endif
with the justification

gpp/src/gpp.c

Lines 3147 to 3149 in 8e6fe69

/* Under windows, files can have backslashes in them.
These should be escaped.
*/
.

Other platforms (mainly Unix-like) can have backslashes in the filename too -- they may even be more liberal at that and allow newlines and other fun stuff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载