Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 146359 Details for
Bug 213639
net-nntp/slrn live SVN ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
us-ascii_override_0.9.9-87.patch
us-ascii_override_0.9.9-87.patch (text/plain), 2.53 KB, created by
mren
on 2008-03-17 00:28:45 UTC
(
hide
)
Description:
us-ascii_override_0.9.9-87.patch
Filename:
MIME Type:
Creator:
mren
Created:
2008-03-17 00:28:45 UTC
Size:
2.53 KB
patch
obsolete
># This patch will allow slrn to override the charset value "us-ascii" ># declared in postings with the value of the fallback charset. This ># might be useful to handle google postings I sometimes ran across, ># which claimed to be "us-ascii" but had 8 bit characters inside. This ># can be done by adding > ># set usascii_override 1 > ># to the .slrnrc. > >--- src/mime.c 2008-02-10 09:47:52.000000000 +0100 >+++ src/mime.c 2008-02-10 09:58:04.000000000 +0100 >@@ -52,6 +52,7 @@ > #include "common.h" > #include "hdrutils.h" > >+int Slrn_Usascii_Override = 0; > int Slrn_Use_Meta_Mail = 1; > int Slrn_Fold_Headers = 1; > char *Slrn_MetaMail_Cmd; >@@ -201,7 +202,15 @@ > b++; > len = b - charset; > >- a->mime.charset = slrn_safe_strnmalloc (charset, len); >+ if( (slrn_case_strncmp((unsigned char *)"us-ascii", charset,8) == 0) >+ && (Slrn_Fallback_Input_Charset != NULL) && (Slrn_Usascii_Override != 0) ) >+ { >+ a->mime.charset = slrn_safe_strmalloc(Slrn_Fallback_Input_Charset); >+ } >+ else >+ { >+ a->mime.charset = slrn_safe_strnmalloc (charset, len); >+ } > return 0; > } > line = line->next; >--- src/mime.h 2008-02-10 09:47:52.000000000 +0100 >+++ src/mime.h 2008-02-10 09:58:04.000000000 +0100 >@@ -31,6 +31,7 @@ > extern Slrn_Mime_Error_Obj *slrn_mime_header_encode (char **, char *); > > >+extern int Slrn_Usascii_Override; > extern int Slrn_Fold_Headers; > extern int Slrn_Use_Meta_Mail; > extern char *Slrn_MetaMail_Cmd; >--- src/startup.c 2008-02-10 09:47:52.000000000 +0100 >+++ src/startup.c 2008-02-10 09:58:04.000000000 +0100 >@@ -631,6 +631,7 @@ > #if !defined(IBMPC_SYSTEM) > {"use_blink", &SLtt_Blink_Mode, NULL}, > #endif >+ {"usascii_override", &Slrn_Usascii_Override}, > {"warn_followup_to", &Slrn_Warn_Followup_To, NULL}, > {"wrap_flags", &Slrn_Wrap_Mode, NULL}, > {"wrap_method", &Slrn_Wrap_Method, NULL}, >Only in src: startup.c.orig >Common subdirectories: src/.svn and src/.svn >--- src/version.c 2008-02-10 09:52:59.000000000 +0100 >+++ src/version.c 2008-02-10 09:58:28.000000000 +0100 >@@ -43,7 +43,7 @@ > #include "art.h" > #include "snprintf.h" > >-#define SLRN_VERSION_STRING_TW SLRN_VERSION_STRING"/mm" >+#define SLRN_VERSION_STRING_TW SLRN_VERSION_STRING"/mm/ao" > char *Slrn_Version_String = SLRN_VERSION_STRING_TW; > int Slrn_Version = SLRN_VERSION; > >@@ -95,6 +95,7 @@ > static char *included_patches[] = > { > "minimal_multipart", >+ "usascii_override", > "" > }; > >Only in src: version.c.orig >Common subdirectories: src/win32 and src/win32
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 213639
:
146355
|
146357
| 146359 |
146361