Skip to content
Snippets Groups Projects
Commit c5c005df authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Use Big Solidus instead of Division Slash to replace Solidus

parent 072bf767
No related branches found
No related tags found
No related merge requests found
Pipeline #6017 passed
...@@ -350,7 +350,7 @@ is_in_filebase(const char *path) ...@@ -350,7 +350,7 @@ is_in_filebase(const char *path)
} }
/* /*
* Replaces a Solidus (aka: slash) with a U+2215 Division Slash * Replaces a Solidus (aka: slash) with a U+29F8 Big Solidus
* The SFTP protocol requires the use of Solidus as a path separator, * The SFTP protocol requires the use of Solidus as a path separator,
* and dir and lib names can contain it. Rather than a visually * and dir and lib names can contain it. Rather than a visually
* different and one-way mapping as used in the FTP server, take * different and one-way mapping as used in the FTP server, take
...@@ -379,8 +379,8 @@ expand_slash(const char *orig) ...@@ -379,8 +379,8 @@ expand_slash(const char *orig)
for (p2 = orig; *p2; p2++) { for (p2 = orig; *p2; p2++) {
if (*p2 == '/') { if (*p2 == '/') {
*p3++ = 0xe2; *p3++ = 0xe2;
*p3++ = 0x88; *p3++ = 0xa7;
*p3++ = 0x95; *p3++ = 0xb8;
} }
else else
*p3++ = *p2; *p3++ = *p2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment