simon-git: xclipglue (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Mon Apr 20 19:18:03 BST 2020
TL;DR:
09210f2 Protocol change: tweak the 8p encoding definition.
Repository: https://git.tartarus.org/simon/xclipglue.git
On the web: https://git.tartarus.org/?p=simon/xclipglue.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2020-04-20 19:18:03
commit 09210f2096590d1c496cf37efcc21098e642efd1
web diff https://git.tartarus.org/?p=simon/xclipglue.git;a=commitdiff;h=09210f2096590d1c496cf37efcc21098e642efd1;hp=6d5c4d978be9ccb9f6c018b2390422ec8523c4f3
Author: Simon Tatham <anakin at pobox.com>
Date: Mon Apr 20 19:15:11 2020 +0100
Protocol change: tweak the 8p encoding definition.
Now I represent a space by _, and require that a literal _ be
represented %-encoded.
Rationale: spaces are extremely common in pasted data, especially in
large numbers at the beginning of lines when you're pasting source
code snippets. With the old protocol, code snippets of that kind would
fall back to base64, because 3 chars per encoded space was too large a
cost. Now they can be encoded _more_ cheaply than base64.
Also, more importantly, it's a debuggability improvement: whenever
ASCII text doesn't have to fall back to base64, you can see at a
glance in the -v output whether the thing being pasted is the thing
you thought it should be.
xclipglue.but | 7 +++++--
xclipglue.cpp | 28 +++++++++++++++++++---------
2 files changed, 24 insertions(+), 11 deletions(-)
More information about the tartarus-commits
mailing list