dotCooCoo
c246fc2f0e
Clipboard: a .svgz file copied in a file manager pastes as its art
...
Paste takes a file copied in a file manager by its flavor, which
file_flavour tells from the file's first 4,096 bytes through
fileio::detect. detect names gzip data SVGZ unless it is a compressed
native file, and file_flavour gave no flavor for the format id svgz.
So a copied .svgz file did not paste as its art, although
clipboard.importSvg, the SVG flavor's command, reads SVGZ data.
A copied file whose gzip data unpacks to SVG markup now pastes through
the SVG flavor. file_flavour unpacks the head it is given with the
gzip decoder the SVGZ reader uses, up to where the head ends, and
checks the first 4,096 unpacked bytes with looks_like_svg, as detect
checks an uncompressed file, reading them as UTF-16 after a UTF-16
byte order mark. Other gzip files get no flavor, as before.
Docs: docs/target-app-parity.md.
2026-10-16 03:36:20 +07:00
..
2026-10-16 03:36:20 +07:00
2026-10-16 03:36:20 +07:00
2026-10-10 14:27:24 +07:00
2026-10-16 02:01:50 +07:00
2026-10-12 11:02:32 +07:00
2026-10-16 02:56:35 +07:00
2026-10-16 02:26:14 +07:00
2026-10-13 02:54:33 +07:00
2026-10-13 08:53:06 +07:00
2026-10-14 06:43:57 +07:00
2026-10-16 02:56:35 +07:00
2026-10-13 02:54:33 +07:00
2026-10-16 02:56:35 +07:00
2026-10-13 02:54:33 +07:00
2026-10-16 02:26:00 +07:00
2026-10-13 02:54:33 +07:00
2026-10-13 05:21:31 +07:00
2026-10-16 01:36:24 +07:00
2026-10-16 02:56:35 +07:00
2026-10-13 02:54:33 +07:00
2026-10-13 08:51:38 +07:00
2026-10-13 02:54:33 +07:00
2026-10-16 02:26:00 +07:00
2026-10-14 08:47:10 +07:00
2026-10-16 01:36:24 +07:00
2026-10-14 03:55:41 +07:00
2026-10-05 09:55:47 +07:00
2026-10-13 05:21:31 +07:00
2026-10-12 08:16:41 +07:00
2026-10-16 02:26:13 +07:00
2026-10-13 02:54:33 +07:00
2026-10-13 02:54:33 +07:00
2026-10-14 03:17:49 +07:00
2026-10-13 05:21:31 +07:00
2026-10-01 14:37:29 -04:00
2026-10-14 13:22:08 +07:00
2026-10-08 15:45:34 -07:00
2026-10-14 05:13:36 +07:00
2026-10-13 20:41:14 -06:00
2026-10-13 02:54:33 +07:00
2026-10-12 08:16:41 +07:00
2026-10-13 06:34:12 +07:00
2026-10-13 05:21:31 +07:00
2026-10-12 11:02:32 +07:00
2026-10-16 02:21:27 +07:00
2026-10-16 02:56:35 +07:00
2026-10-12 11:02:32 +07:00
2026-10-12 08:02:13 +07:00
2026-10-16 02:56:35 +07:00
2026-10-13 05:21:31 +07:00
2026-10-13 02:54:33 +07:00
2026-10-13 18:19:12 +02:00
2026-10-16 02:56:35 +07:00
2026-10-16 02:21:46 +07:00
2026-10-13 11:53:38 +07:00
2026-10-14 03:55:40 +07:00
2026-10-14 10:13:45 +07:00
2026-10-14 03:55:41 +07:00
2026-10-13 02:54:33 +07:00
2026-10-13 02:54:33 +07:00
2026-10-13 02:54:33 +07:00
2026-10-14 05:11:22 +07:00
2026-10-16 02:26:13 +07:00
2026-10-14 05:11:55 +07:00
2026-10-13 02:54:33 +07:00
2026-10-13 02:54:33 +07:00
2026-10-14 04:56:30 +07:00
2026-10-13 02:54:33 +07:00
2026-10-12 11:03:01 +07:00
2026-10-13 13:36:41 +07:00
2026-10-14 03:55:41 +07:00
2026-10-14 11:28:21 +07:00
2026-10-14 13:49:59 +07:00
2026-10-13 02:54:33 +07:00
2026-10-13 02:54:33 +07:00
2026-10-13 02:54:33 +07:00
2026-10-09 13:32:59 -07:00
2026-10-13 02:54:33 +07:00
2026-10-12 11:02:17 +07:00
2026-10-14 12:27:03 +07:00
2026-10-16 02:56:35 +07:00
2026-10-14 05:15:34 +07:00
2026-10-12 11:02:32 +07:00
2026-10-14 04:56:30 +07:00
2026-10-16 02:21:47 +07:00
2026-10-13 02:54:33 +07:00
2026-10-16 02:26:11 +07:00
2026-10-11 07:13:37 +07:00
2026-10-14 03:55:41 +07:00
2026-10-13 02:54:33 +07:00
2026-10-12 00:16:21 +07:00