[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Directory separator for INFO_JS_DIR
From: |
Gavin Smith |
Subject: |
Directory separator for INFO_JS_DIR |
Date: |
Sun, 23 Oct 2022 17:53:01 +0100 |
On Sun, Oct 23, 2022 at 04:47:50PM +0200, pertusus@free.fr wrote:
>
> I tracked it down to tp/ext/epub3.pm and there is actually already a
> FIXME, I knew that something like that was bound to happen:
>
> # FIXME INFO_JS_DIR is used both as a filesystem directory name
> # and as path in document, as a path in document '../' should be
> # used whatever File::Spec->updir() is.
>
> To me the basic issue is that INFO_JS_DIR is used, in HTML.pm in
> output(), both as an HTML path l 8941 and to copy local files near l
> 10184 of HTML.pm. As a local file path, it would make sense to
> use backward slash, but not as HTML path.
In HTML.pm, File::Copy is used to copy the files. It's possible
that forward slashes would work on all relevant OS's, in which case
we can hard-code a forward slash in ext/epub3.pm. I believe that
forward slashes work in most places on MS-Windows as a directory
separator, except on the command line.
Does it even make sense to use INFO_JS_DIR for EPUB output? Do EPUB
readers do anything with the JavaScript files?
- Re: free used incorrectly in api.c, (continued)
- Re: texinfo-6.8.90 pretest, Eli Zaretskii, 2022/10/23
- Re: texinfo-6.8.90 pretest, pertusus, 2022/10/23
- Re: texinfo-6.8.90 pretest, Eli Zaretskii, 2022/10/23
- Re: texinfo-6.8.90 pretest, pertusus, 2022/10/23
- Re: texinfo-6.8.90 pretest, Eli Zaretskii, 2022/10/23
- Re: texinfo-6.8.90 pretest, pertusus, 2022/10/23
- Directory separator for INFO_JS_DIR,
Gavin Smith <=
- Re: Directory separator for INFO_JS_DIR, Eli Zaretskii, 2022/10/23
- Re: Directory separator for INFO_JS_DIR, pertusus, 2022/10/23
- Re: Directory separator for INFO_JS_DIR, pertusus, 2022/10/23
Re: texinfo-6.8.90 pretest, Gavin Smith, 2022/10/22
Re: texinfo-6.8.90 pretest, Eli Zaretskii, 2022/10/22
Re: texinfo-6.8.90 pretest, Gavin Smith, 2022/10/22