bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: uuencode: multi-byte chars in remote file names


From: Bruce Korb
Subject: Re: uuencode: multi-byte chars in remote file names
Date: Mon, 01 Apr 2013 10:28:43 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2

Digging up an old thread:
  http://lists.gnu.org/archive/html/bug-gnu-utils/2011-07/msg00000.html

Yesterday's release of sharutils "officially" adds a new option
to uuencode:

> uuencode (GNU sharutils) - encode a file into email friendly text
> Usage:  uuencode [ -<flag> | --<name> ]... [<in-file>] <output-name>
> 
>    -m, --base64               convert using base64
>    -e, --encode-file-name     encode the output file name
> [...]

that will create an encoded output file name with an extension:

> $ echo hello | uuencode -e -m goodbye
> begin-base64-encoded 644 Z29vZGJ5ZQ==
> aGVsbG8K
> ====

The hyphen separated words appended to "begin" are, essentially,
decoding options.  uudecode is written to accept them in any order
(i.e. "begin-encoded-base64" is also acceptable).
These two variations of the "begin" line are not, obviously,
in the POSIX specified format for uuencode-ed files.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]