ALT Linux repos
5.0: | 4.64L-alt5.1 |
4.1: | 4.64L-alt5 |
4.0: | 4.64L-alt4.1 |
3.0: | 4.58L-alt4 |
+backports: | 4.64L-alt0.M30.4 |
Group :: Networking/Mail
RPM: pine
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: utf8-fillpara-color-signature.diff
Download
Download
# Fix from Eduardo Chappa for correctly coloring the signature
# when both, his fillpara patch (which is included in his all.patch)
# and the utf-8 patch are applied.
# He will include this in patches so it is already upstream.
# Low impact, fixes only the display of a signature when pine's
# color support is enabled and a special color for the dash-dash
# --
# signature
# is configured. without the patch, some color codes are shown,
# otherwise the mail view is fine. (The changed control char for
# embedding the signature color was eaten by the patch)
--- pine4.64-chappa-all.patch-fillpara/pico/word.c 2006/02/23 16:41:17 1.1
+++ pine4.64-chappa-all.patch-fillpara+utf8/pico/word.c 2006/02/23 16:41:28
@@ -403,10 +403,11 @@
((c) == ',') || ((c) == '\"') ? 1 : 0)
#define isaquote(c) ((c) == '\"' || (c) == '\'')
#define is8bit(c) ((((int) (c)) & 0x80) ? 1 : 0)
+#define iscontrol(c) (iscntrl(((int) (c)) & 0x7f) ? 1 : 0)
#define forbidden(c) (((c) == '\"') || ((c) == '\'') || ((c) == '$') ||\
((c) == ',') || ((c) == '.') || ((c) == '-') ||\
((c) == LPAREN) || ((c) == '/')|| ((c) == '`') ||\
- ((c) == '{') || ((c) == '\\') || \
+ ((c) == '{') || ((c) == '\\') || (iscontrol((c))) ||\
(((c) >= '0') && ((c) <= '9')))
#define is_cletter(c) ((((c) >= 'a') && ((c) <= 'z'))) ||\
((((c) >= 'A') && ((c) <= 'Z'))||\