diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2018-03-16 19:27:08 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2018-03-16 19:27:08 +0000 |
commit | 00ba2fdaf854df22163fbf818ffbf52013fd2fcf (patch) | |
tree | 0f08a47912204f046e167040816ff6843e05a96f | |
parent | 6bdf7e89f698c2bcf5c3d17bc130869b0637ad35 (diff) |
remove support of short 8.3 names (w32 only)
git-svn-id: svn://tug.org/texlive/trunk@46984 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/web2c/lib/ChangeLog | 2 | ||||
-rw-r--r-- | Build/source/texk/web2c/lib/texmfmp.c | 82 |
2 files changed, 1 insertions, 83 deletions
diff --git a/Build/source/texk/web2c/lib/ChangeLog b/Build/source/texk/web2c/lib/ChangeLog index 68f555e799e..f9158ecf220 100644 --- a/Build/source/texk/web2c/lib/ChangeLog +++ b/Build/source/texk/web2c/lib/ChangeLog @@ -1,6 +1,6 @@ 2018-03-16 Akira Kakuto <kakuto@fuk.kindai.ac.jp> - * texmfmp.c: Improve the support of short 8.3 names (w32 only). + * texmfmp.c: Remove support of short 8.3 names (w32 only). 2018-01-01 Akira Kakuto <kakuto@fuk.kindai.ac.jp> diff --git a/Build/source/texk/web2c/lib/texmfmp.c b/Build/source/texk/web2c/lib/texmfmp.c index e147bf31cd8..78b59f407c5 100644 --- a/Build/source/texk/web2c/lib/texmfmp.c +++ b/Build/source/texk/web2c/lib/texmfmp.c @@ -665,24 +665,6 @@ const char *ptexbanner = BANNER; /* forward declaration */ static string normalize_quotes (const_string name, const_string mesg); -#ifndef TeX -int srcspecialsp = 0; -#endif -/* Support of 8.3-name convention. If *buffer == NULL, nothing is done. */ -static void change_to_long_name (char **buffer) -{ - if (*buffer) { - char inbuf[260]; - char outbuf[260]; - - memset (outbuf, 0, 260); - strcpy (inbuf, *buffer); - if (GetLongPathName (inbuf, outbuf, 260)) { - *buffer = (char *)realloc(*buffer, strlen(outbuf) + 1); - strcpy (*buffer, outbuf); - } - } -} #endif /* WIN32 */ /* The entry point: set up for reading the command line, which will @@ -788,9 +770,6 @@ maininit (int ac, string *av) #ifdef WIN32 if (main_input_file == NULL) { string name; - boolean is_absolute; - char *strptr; - #ifndef XeTeX boolean quoted; #endif @@ -807,25 +786,9 @@ maininit (int ac, string *av) *pp = '/'; } } - is_absolute = kpse_absolute_p(argv[argc-1], false); name = normalize_quotes(argv[argc-1], "argument"); #ifdef XeTeX main_input_file = kpse_find_file(argv[argc-1], INPUT_FORMAT, false); - if (!srcspecialsp) { - change_to_long_name (&main_input_file); - if (main_input_file) - name = normalize_quotes(main_input_file, "argument"); - if (!is_absolute) { - strptr = strrchr (name, '/'); - if (strptr) { - if (name[0] == '"') - *strptr = '"'; - else - strptr++; - name = strptr; - } - } - } argv[argc-1] = name; #else quoted = (name[0] == '"'); @@ -835,27 +798,11 @@ maininit (int ac, string *av) name++; } main_input_file = kpse_find_file(name, INPUT_FORMAT, false); - if (!srcspecialsp) - change_to_long_name (&main_input_file); if (quoted) { /* Undo modifications */ name[strlen(name)] = '"'; name--; } - if (!srcspecialsp) { - if (main_input_file) - name = normalize_quotes(main_input_file, "argument"); - if (!is_absolute) { - strptr = strrchr (name, '/'); - if (strptr) { - if (name[0] == '"') - *strptr = '"'; - else - strptr++; - name = strptr; - } - } - } argv[argc-1] = name; #endif } @@ -1574,10 +1521,6 @@ normalize_quotes (const_string name, const_string mesg) string get_input_file_name (void) { -#ifdef WIN32 - boolean is_absolute; - char *strptr; -#endif string input_file_name = NULL; if (argv[optind] && argv[optind][0] != '&' && argv[optind][0] != '\\') { @@ -1598,15 +1541,10 @@ get_input_file_name (void) pp++; } } - is_absolute = kpse_absolute_p(argv[optind], false); #endif name = normalize_quotes(argv[optind], "argument"); #ifdef XeTeX input_file_name = kpse_find_file(argv[optind], INPUT_FORMAT, false); -#ifdef WIN32 - if (!srcspecialsp) - change_to_long_name (&input_file_name); -#endif #else quoted = (name[0] == '"'); if (quoted) { @@ -1615,32 +1553,12 @@ get_input_file_name (void) name++; } input_file_name = kpse_find_file(name, INPUT_FORMAT, false); -#ifdef WIN32 - if (!srcspecialsp) - change_to_long_name (&input_file_name); -#endif if (quoted) { /* Undo modifications */ name[strlen(name)] = '"'; name--; } #endif -#ifdef WIN32 - if (!srcspecialsp) { - if (input_file_name) - name = normalize_quotes (input_file_name, "argument"); - if (!is_absolute) { - strptr = strrchr (name, '/'); - if (strptr) { - if (name[0] == '"') - *strptr = '"'; - else - strptr++; - name = strptr; - } - } - } -#endif argv[optind] = name; } return input_file_name; |