Re: Mangled file names in temp dir

2023-11-08 Thread Pavel Sanda
On Thu, Oct 26, 2023 at 01:23:35PM +0200, Pavel Sanda wrote: > Possible collision are easily handled by recursive > hash(hash(..(hash(string))), > see attached patch. Polished patch attached. I will do some more testing before committing to the tree. Pavel diff --git

Re: Mangled file names in temp dir

2023-10-26 Thread Pavel Sanda
On Tue, Oct 24, 2023 at 10:36:08PM -0500, Richard Kimberly Heck wrote: > >>>If so it might be good use shorter hash for windows. I previously used > >>>sha-256 > >>>resulting in +65 chars, but we could swicth to sha-1 (41 chars) or turn it > >>>off > >>>altogether for windows. Any opinion about

Re: Mangled file names in temp dir

2023-10-24 Thread Richard Kimberly Heck
On 10/23/23 18:32, Pavel Sanda wrote: On Mon, Oct 23, 2023 at 11:30:44PM +0200, Enrico Forestieri wrote: There is one point I'm not sure about - is it really true that windows still set default limit for max path length to ~260 chars? Yes, the APIs are still limited to that length: $ grep

Re: Mangled file names in temp dir

2023-10-23 Thread Pavel Sanda
On Mon, Oct 23, 2023 at 11:30:44PM +0200, Enrico Forestieri wrote: > >There is one point I'm not sure about - is it really true that windows still > >set default limit for max path length to ~260 chars? > > Yes, the APIs are still limited to that length: > > $ grep MAX_PATH

Re: Mangled file names in temp dir

2023-10-23 Thread Enrico Forestieri
On Mon, Oct 23, 2023 at 05:25:53PM +0200, Pavel Sanda wrote: On Mon, Oct 16, 2023 at 07:58:00PM +0200, Enrico Forestieri wrote: On Mon, Oct 16, 2023 at 03:41:59PM +0200, Pavel Sanda wrote: > >On Sun, Oct 15, 2023 at 09:07:24PM +0200, Enrico Forestieri wrote: >>Pavel, in commit eef0c8e8 you

Re: Mangled file names in temp dir

2023-10-23 Thread Pavel Sanda
On Mon, Oct 16, 2023 at 07:58:00PM +0200, Enrico Forestieri wrote: > On Mon, Oct 16, 2023 at 03:41:59PM +0200, Pavel Sanda wrote: > > > >On Sun, Oct 15, 2023 at 09:07:24PM +0200, Enrico Forestieri wrote: > >>Pavel, in commit eef0c8e8 you say: > >> > >>>xHTML export: change filenames of exported

Re: Mangled file names in temp dir

2023-10-16 Thread Enrico Forestieri
On Mon, Oct 16, 2023 at 03:41:59PM +0200, Pavel Sanda wrote: On Sun, Oct 15, 2023 at 09:07:24PM +0200, Enrico Forestieri wrote: Pavel, in commit eef0c8e8 you say: >xHTML export: change filenames of exported images. > >This patch aims at: >1. replacing absolute paths by their hashes (do not

Re: Mangled file names in temp dir

2023-10-16 Thread Pavel Sanda
On Sun, Oct 15, 2023 at 09:07:24PM +0200, Enrico Forestieri wrote: > Pavel, in commit eef0c8e8 you say: > > >xHTML export: change filenames of exported images. > > > >This patch aims at: > >1. replacing absolute paths by their hashes (do not leak directory > >structures) > >2. not using counters

Mangled file names in temp dir

2023-10-15 Thread Enrico Forestieri
Pavel, in commit eef0c8e8 you say: xHTML export: change filenames of exported images. This patch aims at: 1. replacing absolute paths by their hashes (do not leak directory structures) 2. not using counters anymore so that changing figures order in the document does not lead to large number