gettext/gettext-po-send-mail.patch
Igor Gnatenko 35c094b5df
Revert "gettext fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1674958"
This reverts commit 2b1ba2ed02.

https://pagure.io/releng/issue/8596

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-08-09 09:21:31 +02:00

22 lines
982 B
Diff

Index: gettext-0.19.8.1/gettext-tools/misc/po-mode.el
===================================================================
--- gettext-0.19.8.1.orig/gettext-tools/misc/po-mode.el
+++ gettext-0.19.8.1/gettext-tools/misc/po-mode.el
@@ -3518,10 +3518,12 @@ Write to your team? ('n' if writing to
(re-search-forward
(concat "^" (regexp-quote mail-header-separator) "\n"))
(save-excursion
- (insert-buffer-substring buffer)
- (shell-command-on-region
- (region-beginning) (region-end)
- (concat po-gzip-uuencode-command " " name ".gz") t t))))))
+ (save-restriction
+ (narrow-to-region (point) (point))
+ (insert-buffer-substring buffer)
+ (shell-command-on-region
+ (point-min) (point-max)
+ (concat po-gzip-uuencode-command " " name ".gz") t t)))))))
(message ""))
(defun po-confirm-and-quit ()