Show More
@@ -526,7 +526,14 b' mime encoded mbox (base64):' | |||
|
526 | 526 | QEAgLTAsMCArMSwxIEBACitow7ZtbWEhCg== |
|
527 | 527 | |
|
528 | 528 | |
|
529 | $ $PYTHON -c 'print open("mbox").read().split("\n\n")[1].decode("base64")' | |
|
529 | >>> import base64 | |
|
530 | >>> patch = base64.b64decode(open("mbox").read().split("\n\n")[1]) | |
|
531 | >>> if not isinstance(patch, str): | |
|
532 | ... import sys | |
|
533 | ... sys.stdout.flush() | |
|
534 | ... junk = sys.stdout.buffer.write(patch + b"\n") | |
|
535 | ... else: | |
|
536 | ... print(patch) | |
|
530 | 537 |
|
|
531 | 538 |
|
|
532 | 539 |
|
@@ -551,7 +558,7 b' mime encoded mbox (base64):' | |||
|
551 | 558 | $ rm mbox |
|
552 | 559 | |
|
553 | 560 | mime encoded mbox (quoted-printable): |
|
554 |
|
|
|
561 | $ $PYTHON -c 'fp = open("long", "wb"); fp.write(b"%s\nfoo\n\nbar\n" % (b"x" * 1024)); fp.close();' | |
|
555 | 562 |
|
|
556 | 563 | adding long |
|
557 | 564 | |
@@ -2531,10 +2538,11 b' test flag template plus --flag:' | |||
|
2531 | 2538 |
|
|
2532 | 2539 | |
|
2533 | 2540 | test multi-byte domain parsing: |
|
2534 | $ UUML=`$PYTHON -c 'import sys; sys.stdout.write("\374")'` | |
|
2541 | >>> with open('toaddress.txt', 'wb') as f: | |
|
2542 | ... f.write(b'bar@\xfcnicode.com') and None | |
|
2535 | 2543 | $ HGENCODING=iso-8859-1 |
|
2536 | 2544 | $ export HGENCODING |
|
2537 |
$ |
|
|
2545 | $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "`cat toaddress.txt`" -s test -r 0 | |
|
2538 | 2546 | this patch series consists of 1 patches. |
|
2539 | 2547 |
|
|
2540 | 2548 | Cc: |
General Comments 0
You need to be logged in to leave comments.
Login now