Re: [PATCH v4] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-11-28 Thread Developers list for Guile, the GNU extensibility library
The HACKING file says that we always have to go through FSF copyright assignment beforehand, so I was just waiting for that. If they don't care about that anymore, then my name would go in THANKS instead. For completeness, I've attached patches for either case. (In case I'm still wrong, this wo

Re: [PATCH v4] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-11-27 Thread Vivien Kraus
Le lundi 27 novembre 2023 à 18:10 +0100, Vivien Kraus a écrit : > Dear Guile developers, > > Some time ago, Nathan wrote this patch as a better version of mine, > and > I would really like to see it merged. > > Does it need more improvement? I consider it pretty good. Maybe I spoke too soon: the

Re: [PATCH v4] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-11-27 Thread Vivien Kraus
Dear Guile developers, Some time ago, Nathan wrote this patch as a better version of mine, and I would really like to see it merged. Does it need more improvement? I consider it pretty good. Best regards, Vivien Le jeudi 02 novembre 2023 à 16:00 -0400, Nathan a écrit : > There is a problem and

Re: [PATCH v4] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-11-03 Thread Vivien Kraus
Le vendredi 03 novembre 2023 à 13:49 -0400, Nathan a écrit : > > This pushes the limits of my understanding of URIs, as I did not > > know > > we had to consider '%2E%2E' the same as '..'. However, the RFC is > > not > > very clear: > > I wasn't able to find anything that MANDATED any normalizatio

Re: [PATCH v4] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-11-03 Thread Developers list for Guile, the GNU extensibility library
Hi Vivien, > This pushes the limits of my understanding of URIs, as I did not know > we had to consider '%2E%2E' the same as '..'. However, the RFC is not > very clear: I wasn't able to find anything that MANDATED any normalization at all, either before or after Relative Resolution. It is poss

[PATCH v4] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-11-02 Thread Developers list for Guile, the GNU extensibility library
There is a problem and I fixed it by rewriting a bunch of code myself because I need similar code. remove-dot-segments: You cannot split-and-decode-uri-path and then encode-and-join-uri-path. Those are terrible functions that don't work on all URIs. URI schemes are allowed to specify that certain

Re: [PATCH v4] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-11-02 Thread Vivien Kraus
Hello Natan! Le jeudi 02 novembre 2023 à 16:00 -0400, Nathan a écrit : > There is a problem and I fixed it by rewriting a bunch of code myself > because I need similar code. Thank you! > remove-dot-segments: > You cannot split-and-decode-uri-path and then encode-and-join-uri- > path. > Those are

[PATCH v4] Add resolve-relative-reference in (web uri), as in RFC 3986 5.2.

2023-10-26 Thread Vivien Kraus
* module/web/uri.scm (remove-dot-segments): Implement algorithm 5.2.4. (merge-paths): Implement algorithm 5.2.3. (resolve-relative-reference): Implement algorithm 5.2.2. (module): Export resolve-relative-reference. * NEWS: Reference it here. * doc/ref/web.texi (URIs): Document it here. (Subtypes of