Le lundi 6 mars 2023 à 17:52:49 UTC+1, Albrecht Schlosser a
écrit :
Here are some examples, created with three different file
managers (nemo, nautilus, thunar) and the FLTK editor
example program in Wayland and/or X11 mode:
I'm afraid these examples didn't use the last code for
Wayland which changed yesterday.
Wayland now produces the same as Windows and macOS, that is
pathnames, one per line, except for special
prefixes such as "davfs://" that produce as in these
examples.
I didn't intend to show "exact" examples. I only wanted to point out
that I can see different formats as provided by different file
managers on the same system.
There's something strange in some encoded strings visible
above such as "user=info%2540<my_domain>"
.
This
seems to have been encoded twice, and thus to require
being decoded twice to come out correctly.
1st
decoding: %25 gives % because 0x25 is the codepoint of %
2nd
decoding: %40 gives @ because 0x40 is the codepoint of @
Final
result: user-info@<my_domain>
The
correct encoding in one go I would have expected to see is
"user-info%40<my_domain>".
Yes, I see. The problem with this is that the sender encodes the
data, and there may be inconsistencies.
where you can see one '%40' and one literal '@' which is really
weird.
After seeing these issues I wonder if it's useful to try to "decode"
these strings in FLTK because we'd have to answer questions why a
particular string is not decoded as "expected". If we leave them
as-is we can always say that these strings are exactly as sent by
the file manager or whatever program encoded them.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.