simon-git: xcopy (master): Simon Tatham

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Fri Feb 26 07:54:42 GMT 2016


TL;DR:
  77a3088 New xcopy type options: -h and -H, for text/html.

Repository:     git://git.tartarus.org/simon/xcopy.git
On the web:     http://tartarus.org/~simon-git/gitweb/?p=xcopy.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2016-02-26 07:54:42

commit 77a30888116b9eb201bd80ffbf7b4b3ca0cb4b90
web diff http://tartarus.org/~simon-git/gitweb/?p=xcopy.git;a=commitdiff;h=77a30888116b9eb201bd80ffbf7b4b3ca0cb4b90;hp=5ca4d98fa08171cb68352fccec10b0cb9e236d7d
Author: Simon Tatham <anakin at pobox.com>
Date:   Fri Feb 26 07:52:20 2016 +0000

    New xcopy type options: -h and -H, for text/html.
    
    Firefox lets you paste HTML snippets out of a page if you request the
    selection as type 'text/html'. But it comes back in UTF-16, which is
    fairly inconvenient. So I provide that raw format as -H, and the
    easier-to-type option -h arranges to auto-convert to UTF-8 on output.
    
    In write mode, -h will also autoconvert input UTF-8 back to UTF-16. At
    the moment, that's just there for symmetry and completeness: I don't
    have any use case for pasting HTML text _into_ anything.
    
    (Other than, I suppose, a second xcopy somewhere which might at other
    times be receiving from Firefox but on some particular occasion you
    want to inject data manually!)

 xcopy.but |   16 +++++++
 xcopy.c   |  159 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 173 insertions(+), 2 deletions(-)



More information about the tartarus-commits mailing list