Thread View: news.software.readers
25 messages
25 total messages
Started by andrew
Thu, 18 Oct 2007 22:06
{slrn} build 234: 2 small probs
Author: andrew
Date: Thu, 18 Oct 2007 22:06
Date: Thu, 18 Oct 2007 22:06
26 lines
1697 bytes
1697 bytes
Hi,
2 quick notes about the build slrn 234:
1. When typing anything brackets, either [..] or {..} in the Subject
of a new post slrn appears to create 2 lines for the subject.
2. A single odd MID, my apologies if work on characters is continuing
:-)
MID: <5npp2lFi2m6sU1@mid.individual.net>
slrn: From: "<D6>jevind L<E5>ng" <bredband.net@ojevind.lang>
Should be: From: "Ăjevind LĂ„ng".......
slrn: Reply-To: "<D6>jevind L<E5>ng" <bredband.net@ojevind.lang>
Should be: Reply-To: "Ăjevind LĂ„ng" <.....
Thanks again John,
Andrew
--
Among the tales of sorrow and of ruin that come down to us
from the darkness of those days there are yet some in which
amid weeping there is joy and under the shadow of death light
endures ...
Re: {slrn} build 234: 2 small probs
Author: andrew
Date: Thu, 18 Oct 2007 23:10
Date: Thu, 18 Oct 2007 23:10
20 lines
1719 bytes
1719 bytes
On 2007-10-18, andrew <andrew@ilium.invalid> wrote:
> Hi,
>
> 2 quick notes about the build slrn 234:
>
> 1. When typing anything brackets, either [..] or {..} in the Subject
> of a new post slrn appears to create 2 lines for the subject.
This was using the stock slackware S-Lang 2.0.7. When I recompiled
with 2.1.2 the effect was gone although the cursor flickered from the
final bracket of [slrn] back to the initial bracket before allowing me
to continue typing. Odd.
Andrew
--
Among the tales of sorrow and of ruin that come down to us
from the darkness of those days there are yet some in which
amid weeping there is joy and under the shadow of death light
endures ...
Re: {slrn} build 234: 2 small probs
Author: John E. Davis
Date: Fri, 19 Oct 2007 00:09
Date: Fri, 19 Oct 2007 00:09
20 lines
1978 bytes
1978 bytes
On 18 Oct 2007 23:10:04 GMT, andrew <andrew@ilium.invalid>
wrote:
>> 1. When typing anything brackets, either [..] or {..} in the Subject
>> of a new post slrn appears to create 2 lines for the subject.
Exactly how and where does this manifest itself? Do you see the two
lines after slrn dumps you into your header, or while you are in slrn?
> This was using the stock slackware S-Lang 2.0.7. When I recompiled
> with 2.1.2 the effect was gone although the cursor flickered from the
> final bracket of [slrn] back to the initial bracket before allowing me
> to continue typing. Odd.
What you are seeing sounds like "blinking" of the matching
delimiter. Usually such delimiters come in matching pairs and this
blinking feature is an editing aid. Both the jed and emacs editors
implement this feature, and I would imagine that others do as well.
Thanks,
--John
Re: {slrn} build 234: 2 small probs
Author: John E. Davis
Date: Fri, 19 Oct 2007 00:16
Date: Fri, 19 Oct 2007 00:16
15 lines
1605 bytes
1605 bytes
On 18 Oct 2007 22:06:32 GMT, andrew <andrew@ilium.invalid> wrote: > MID: <5npp2lFi2m6sU1@mid.individual.net> > slrn: From: "<D6>jevind L<E5>ng" <bredband.net@ojevind.lang> > Should be: From: "Ăjevind LĂ„ng"....... A message with this message-id is not (yet?) on my server. I imagine that no character-set has been specified in the header. Does commenting out the header-skipping-while-loop in the mime.c:guess_unknown_charset function resolve the problem? If so, does it cause other problems? Thanks, --John
Re: {slrn} build 234: 2 small probs
Author: andrew
Date: Fri, 19 Oct 2007 00:25
Date: Fri, 19 Oct 2007 00:25
24 lines
1882 bytes
1882 bytes
On 2007-10-19, John E. Davis <jed@jedsoft.org> wrote:
> On 18 Oct 2007 23:10:04 GMT, andrew <andrew@ilium.invalid>
> wrote:
>>> 1. When typing anything brackets, either [..] or {..} in the Subject
>>> of a new post slrn appears to create 2 lines for the subject.
>
> Exactly how and where does this manifest itself? Do you see the two
> lines after slrn dumps you into your header, or while you are in slrn?
[...]
It is only seen in slrn. I have taken a screenshot:
http://people.aapt.net.au/~adjlstrong/double_subject.png
which hopefully demonstrates this clearly.
Andrew
--
Among the tales of sorrow and of ruin that come down to us
from the darkness of those days there are yet some in which
amid weeping there is joy and under the shadow of death light
endures ...
Re: {slrn} build 234: 2 small probs
Author: andrew
Date: Fri, 19 Oct 2007 00:51
Date: Fri, 19 Oct 2007 00:51
45 lines
2279 bytes
2279 bytes
On 2007-10-19, John E. Davis <jed@jedsoft.org> wrote:
> On 18 Oct 2007 22:06:32 GMT, andrew <andrew@ilium.invalid>
> wrote:
>> MID: <5npp2lFi2m6sU1@mid.individual.net>
>> slrn: From: "<D6>jevind L<E5>ng" <bredband.net@ojevind.lang>
>> Should be: From: "Ăjevind LĂ„ng".......
>
> A message with this message-id is not (yet?) on my server. I imagine
> that no character-set has been specified in the header. Does
> commenting out the header-skipping-while-loop in the
> mime.c:guess_unknown_charset function resolve the problem? If so,
> does it cause other problems?
Do you mean this section:
/* Skip header */
while ((line != NULL) && (line->flags & HEADER_LINE))
line = line->next;
while (line != NULL)
{
unsigned char *p, *pmax, ch;
unsigned int nconsumed;
SLwchar_Type wch;
p = (unsigned char *)line->buf;
while (((ch = *p) != 0) && ((ch & 0x80) == 0))
p++;
if (ch == 0)
{
line = line->next;
continue;
}
pmax = p + strlen ((char *)p);
Andrew
--
Among the tales of sorrow and of ruin that come down to us
from the darkness of those days there are yet some in which
amid weeping there is joy and under the shadow of death light
endures ...
Re: {slrn} build 234: 2 small probs
Author: John E. Davis
Date: Fri, 19 Oct 2007 01:08
Date: Fri, 19 Oct 2007 01:08
9 lines
1393 bytes
1393 bytes
On 19 Oct 2007 00:51:08 GMT, andrew <andrew@ilium.invalid> wrote: > Do you mean this section: > > /* Skip header */ > while ((line != NULL) && (line->flags & HEADER_LINE)) > line = line->next; Yes, that while-loop. Thanks, --John
Re: {slrn} build 234: 2 small probs
Author: John E. Davis
Date: Fri, 19 Oct 2007 01:11
Date: Fri, 19 Oct 2007 01:11
13 lines
1561 bytes
1561 bytes
On 19 Oct 2007 00:25:45 GMT, andrew <andrew@ilium.invalid> wrote: > It is only seen in slrn. I have taken a screenshot: > > http://people.aapt.net.au/~adjlstrong/double_subject.png > > which hopefully demonstrates this clearly. What terminal are you using? Does it happen in xterm or rxvt? Does it also happen with parenthesis or braces? Thanks, --John
Re: {slrn} build 234: 2 small probs
Author: andrew
Date: Fri, 19 Oct 2007 01:11
Date: Fri, 19 Oct 2007 01:11
37 lines
2378 bytes
2378 bytes
On 2007-10-19, andrew <andrew@ilium.invalid> wrote:
> On 2007-10-19, John E. Davis <jed@jedsoft.org> wrote:
>> On 18 Oct 2007 22:06:32 GMT, andrew <andrew@ilium.invalid>
>> wrote:
>>> MID: <5npp2lFi2m6sU1@mid.individual.net>
>>> slrn: From: "<D6>jevind L<E5>ng" <bredband.net@ojevind.lang>
>>> Should be: From: "Ăjevind LĂ„ng".......
>>
>> A message with this message-id is not (yet?) on my server. I imagine
>> that no character-set has been specified in the header. Does
>> commenting out the header-skipping-while-loop in the
>> mime.c:guess_unknown_charset function resolve the problem? If so,
>> does it cause other problems?
>
>
> Do you mean this section:
>
> /* Skip header */
[... omitting wild guess...]
> }
I have had a look and to tell the truth my knowledge of such things,
which is zero, leads me to suspect that I will do more damage than
good by commenting out sections of code. If you can guide me to
specific lines this is fine otherwise I should warn you that my
profession as intensive care rn has ill-prepared me for modifying slrn
source code :-)
Andrew
--
Among the tales of sorrow and of ruin that come down to us
from the darkness of those days there are yet some in which
amid weeping there is joy and under the shadow of death light
endures ...
Re: {slrn} build 234: 2 small probs
Author: andrew
Date: Fri, 19 Oct 2007 01:21
Date: Fri, 19 Oct 2007 01:21
34 lines
2077 bytes
2077 bytes
On 2007-10-19, John E. Davis <jed@jedsoft.org> wrote:
> On 19 Oct 2007 00:25:45 GMT, andrew <andrew@ilium.invalid>
> wrote:
>> It is only seen in slrn. I have taken a screenshot:
>>
>> http://people.aapt.net.au/~adjlstrong/double_subject.png
>>
>> which hopefully demonstrates this clearly.
>
> What terminal are you using? Does it happen in xterm or rxvt? Does
> it also happen with parenthesis or braces?
Terminal 0.2.6
X Terminal Emulator
Copyright © 2003-2007 Benedikt Meurer
http://terminal.os-cillation.de
xterm
Xfce 4 Desktop Environment
version 4.4.1 (Xfce 4.4)
Same effect with (..) {...} [...]
But only when I compile with S-Lang 2.0.7, perfect with 2.1.2
Andrew
Andrew
--
Among the tales of sorrow and of ruin that come down to us
from the darkness of those days there are yet some in which
amid weeping there is joy and under the shadow of death light
endures ...
Re: {slrn} build 234: 2 small probs
Author: John E. Davis
Date: Fri, 19 Oct 2007 01:22
Date: Fri, 19 Oct 2007 01:22
32 lines
1970 bytes
1970 bytes
On 19 Oct 2007 01:11:42 GMT, andrew <andrew@ilium.invalid>
wrote:
> I have had a look and to tell the truth my knowledge of such things,
> which is zero, leads me to suspect that I will do more damage than
> good by commenting out sections of code. If you can guide me to
> specific lines this is fine otherwise I should warn you that my
> profession as intensive care rn has ill-prepared me for modifying slrn
> source code :-)
No problem. Change:
#v+
/* skip header lines */
while ((line != NULL)
&& (line->flags & HEADER_LINE))
line=line->next;
#v-
to
#v+
/* skip header lines */
if (0) while ((line != NULL)
&& (line->flags & HEADER_LINE))
line=line->next;
#v-
That is, prefix `while' with `if (0)'.
Thanks,
--John
Re: {slrn} build 234: 2 small probs
Author: andrew
Date: Fri, 19 Oct 2007 01:23
Date: Fri, 19 Oct 2007 01:23
20 lines
1689 bytes
1689 bytes
On 2007-10-19, John E. Davis <jed@jedsoft.org> wrote:
> On 19 Oct 2007 00:51:08 GMT, andrew <andrew@ilium.invalid>
> wrote:
>> Do you mean this section:
>>
>> /* Skip header */
>> while ((line != NULL) && (line->flags & HEADER_LINE))
>> line = line->next;
>
> Yes, that while-loop. Thanks, --John
OK ignore my 'I'm too dumb to try this' message: I shall try.
Andrew
--
Among the tales of sorrow and of ruin that come down to us
from the darkness of those days there are yet some in which
amid weeping there is joy and under the shadow of death light
endures ...
Re: {slrn} build 234: 2 small probs
Author: andrew
Date: Fri, 19 Oct 2007 01:39
Date: Fri, 19 Oct 2007 01:39
55 lines
2638 bytes
2638 bytes
On 2007-10-19, John E. Davis <jed@jedsoft.org> wrote:
> On 19 Oct 2007 01:11:42 GMT, andrew <andrew@ilium.invalid>
> wrote:
[...]
> No problem. Change:
> #v+
>
> /* skip header lines */
> while ((line != NULL)
> && (line->flags & HEADER_LINE))
> line=line->next;
>
> #v-
> to
> #v+
>
> /* skip header lines */
> if (0) while ((line != NULL)
> && (line->flags & HEADER_LINE))
> line=line->next;
>
> #v-
Done. But display remained as before. If the message has not appeared
on your server yet the head is below:
Newsgroups: rec.arts.books.tolkien
Subject: Re: test
Date: Thu, 18 Oct 2007 21:04:43 +0200
Lines: 12
Message-ID: <5npp2lFi2m6sU1@mid.individual.net>
References: <op.t0bqjdjx0orlwa@emachine.home>
<slrnfhb6p5.2vn.andrew@ilium.inval
Reply-To: "<D6>jevind L<E5>ng" <bredband.net@ojevind.lang>
X-Trace: individual.net
GL7vviVSrzy7vgqWqKFVIwsmf4yhCMQ8tzbJ62M9IaxSUJfDGA
Cancel-Lock: sha1:+17KVYDw4NL4KmJNkKn2QGa3YGA=
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
Xref: uni-berlin.de rec.arts.books.tolkien:317690
Thanks again,
Andrew
--
Among the tales of sorrow and of ruin that come down to us
from the darkness of those days there are yet some in which
amid weeping there is joy and under the shadow of death light
endures ...
Re: {slrn} build 234: 2 small probs
Author: John E. Davis
Date: Fri, 19 Oct 2007 01:40
Date: Fri, 19 Oct 2007 01:40
32 lines
1992 bytes
1992 bytes
On 19 Oct 2007 01:21:41 GMT, andrew <andrew@ilium.invalid>
wrote:
> Same effect with (..) {...} [...]
>
> But only when I compile with S-Lang 2.0.7, perfect with 2.1.2
There were a number of changes to the SLrline functions between 2.0.7
and 2.1.2. In slrn/src/misc.c, you will find a section of code that
looks like:
#v+
unsigned int flags = SL_RLINE_BLINK_MATCH;
if (Slrn_UTF8_Mode)
flags |= SL_RLINE_UTF8_MODE;
if (NULL == (rli = SLrline_open (SLtt_Screen_Cols, flags)))
return NULL;
#v-
Change the very first line above to
#v+
unsigned int flags = 0;
#v-
If this solves the problem, the the next update will disable this
feature for slang-2.0.x.
Thanks,
--John
Re: {slrn} build 234: 2 small probs
Author: andrew
Date: Fri, 19 Oct 2007 01:54
Date: Fri, 19 Oct 2007 01:54
43 lines
2395 bytes
2395 bytes
On 2007-10-19, John E. Davis <jed@jedsoft.org> wrote:
> On 19 Oct 2007 01:21:41 GMT, andrew <andrew@ilium.invalid>
> wrote:
>> Same effect with (..) {...} [...]
>>
>> But only when I compile with S-Lang 2.0.7, perfect with 2.1.2
>
> There were a number of changes to the SLrline functions between 2.0.7
> and 2.1.2. In slrn/src/misc.c, you will find a section of code that
> looks like:
> #v+
>
> unsigned int flags = SL_RLINE_BLINK_MATCH;
>
> if (Slrn_UTF8_Mode)
> flags |= SL_RLINE_UTF8_MODE;
>
> if (NULL == (rli = SLrline_open (SLtt_Screen_Cols, flags)))
> return NULL;
>
> #v-
>
> Change the very first line above to
>
> #v+
> unsigned int flags = 0;
> #v-
>
> If this solves the problem, the the next update will disable this
> feature for slang-2.0.x.
Done this but unfortunately with no effect. The break in the lines
occurs not with the final brace but when I use spacebar to insert
space.
Andrew
--
Among the tales of sorrow and of ruin that come down to us
from the darkness of those days there are yet some in which
amid weeping there is joy and under the shadow of death light
endures ...
Re: {slrn} build 234: 2 small probs
Author: andrew
Date: Fri, 19 Oct 2007 02:57
Date: Fri, 19 Oct 2007 02:57
27 lines
2105 bytes
2105 bytes
On 2007-10-19, John E. Davis <jed@jedsoft.org> wrote:
> On 18 Oct 2007 22:06:32 GMT, andrew <andrew@ilium.invalid>
> wrote:
>> MID: <5npp2lFi2m6sU1@mid.individual.net>
>> slrn: From: "<D6>jevind L<E5>ng" <bredband.net@ojevind.lang>
>> Should be: From: "Ăjevind LĂ„ng".......
>
> A message with this message-id is not (yet?) on my server. I imagine
> that no character-set has been specified in the header. Does
> commenting out the header-skipping-while-loop in the
> mime.c:guess_unknown_charset function resolve the problem? If so,
> does it cause other problems?
Hmmmm.... this particular group is in turmoil at the moment with
sporge attack. However the same poster is a regular and 2 more
examples of the problem which hopefully you can access are:
<5nemglFhm3vlU1@mid.individual.net>
<5n4k2uFg904eU1@mid.individual.net>
Andrew
--
Among the tales of sorrow and of ruin that come down to us
from the darkness of those days there are yet some in which
amid weeping there is joy and under the shadow of death light
endures ...
Re: {slrn} build 234: 2 small probs
Author: Blinky the Shark
Date: Fri, 19 Oct 2007 03:19
Date: Fri, 19 Oct 2007 03:19
24 lines
2338 bytes
2338 bytes
andrew wrote: > On 2007-10-19, John E. Davis <jed@jedsoft.org> wrote: >> On 18 Oct 2007 22:06:32 GMT, andrew <andrew@ilium.invalid> >> wrote: >>> MID: <5npp2lFi2m6sU1@mid.individual.net> >>> slrn: From: "<D6>jevind L<E5>ng" <bredband.net@ojevind.lang> >>> Should be: From: "Ăjevind LĂ„ng"....... >> >> A message with this message-id is not (yet?) on my server. I imagine >> that no character-set has been specified in the header. Does >> commenting out the header-skipping-while-loop in the >> mime.c:guess_unknown_charset function resolve the problem? If so, >> does it cause other problems? > > Hmmmm.... this particular group is in turmoil at the moment with > sporge attack. However the same poster is a regular and 2 more Still? -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project - http://improve-usenet.org
Re: {slrn} build 234: 2 small probs
Author: andrew
Date: Fri, 19 Oct 2007 03:30
Date: Fri, 19 Oct 2007 03:30
31 lines
2406 bytes
2406 bytes
On 2007-10-19, Blinky the Shark <no.spam@box.invalid> wrote:
> andrew wrote:
>> On 2007-10-19, John E. Davis <jed@jedsoft.org> wrote:
>>> On 18 Oct 2007 22:06:32 GMT, andrew <andrew@ilium.invalid>
>>> wrote:
>>>> MID: <5npp2lFi2m6sU1@mid.individual.net>
>>>> slrn: From: "<D6>jevind L<E5>ng" <bredband.net@ojevind.lang>
>>>> Should be: From: "Ăjevind LĂ„ng".......
>>>
>>> A message with this message-id is not (yet?) on my server. I imagine
>>> that no character-set has been specified in the header. Does
>>> commenting out the header-skipping-while-loop in the
>>> mime.c:guess_unknown_charset function resolve the problem? If so,
>>> does it cause other problems?
>>
>> Hmmmm.... this particular group is in turmoil at the moment with
>> sporge attack. However the same poster is a regular and 2 more
>
> Still?
Not evident using individual.net but I had a look at google groups
search and the group is a mess of ridiculous posts. Not sure why
anybody would target such a harmless group, ? random.
Andrew
--
Among the tales of sorrow and of ruin that come down to us
from the darkness of those days there are yet some in which
amid weeping there is joy and under the shadow of death light
endures ...
Re: {slrn} build 234: 2 small probs
Author: Blinky the Shark
Date: Fri, 19 Oct 2007 04:27
Date: Fri, 19 Oct 2007 04:27
31 lines
2767 bytes
2767 bytes
andrew wrote: > On 2007-10-19, Blinky the Shark <no.spam@box.invalid> wrote: >> andrew wrote: >>> On 2007-10-19, John E. Davis <jed@jedsoft.org> wrote: >>>> On 18 Oct 2007 22:06:32 GMT, andrew <andrew@ilium.invalid> >>>> wrote: >>>>> MID: <5npp2lFi2m6sU1@mid.individual.net> >>>>> slrn: From: "<D6>jevind L<E5>ng" <bredband.net@ojevind.lang> >>>>> Should be: From: "Ăjevind LĂ„ng"....... >>>> >>>> A message with this message-id is not (yet?) on my server. I imagine >>>> that no character-set has been specified in the header. Does >>>> commenting out the header-skipping-while-loop in the >>>> mime.c:guess_unknown_charset function resolve the problem? If so, >>>> does it cause other problems? >>> >>> Hmmmm.... this particular group is in turmoil at the moment with >>> sporge attack. However the same poster is a regular and 2 more >> >> Still? > > Not evident using individual.net but I had a look at google groups > search and the group is a mess of ridiculous posts. Not sure why > anybody would target such a harmless group, ? random. Some people are ass holes. -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project - http://improve-usenet.org
Re: {slrn} build 234: 2 small probs
Author: John E. Davis
Date: Fri, 19 Oct 2007 05:39
Date: Fri, 19 Oct 2007 05:39
14 lines
1760 bytes
1760 bytes
On 19 Oct 2007 01:54:32 GMT, andrew <andrew@ilium.invalid> wrote: >> If this solves the problem, the the next update will disable this >> feature for slang-2.0.x. > > Done this but unfortunately with no effect. The break in the lines > occurs not with the final brace but when I use spacebar to insert > space. This weekend I perform some tests with slang-2.0.7 to see what can be done. Thanks, --John
Re: {slrn} build 234: 2 small probs
Author: Thomas Wiegner
Date: Fri, 19 Oct 2007 15:55
Date: Fri, 19 Oct 2007 15:55
154 lines
5192 bytes
5192 bytes
On Fri, 19 Oct 2007, andrew <andrew@ilium.invalid> wrote:
>> No problem. Change:
>> #v+
>>
>> /* skip header lines */
>> while ((line != NULL)
>> && (line->flags & HEADER_LINE))
>> line=line->next;
>>
>> #v-
>> to
>> #v+
>>
>> /* skip header lines */
>> if (0) while ((line != NULL)
>> && (line->flags & HEADER_LINE))
>> line=line->next;
>>
>> #v-
>
> Done. But display remained as before. If the message has not appeared
> on your server yet the head is below:
>
> Newsgroups: rec.arts.books.tolkien
> Subject: Re: test
> Date: Thu, 18 Oct 2007 21:04:43 +0200
> Lines: 12
> Message-ID: <5npp2lFi2m6sU1@mid.individual.net>
> References: <op.t0bqjdjx0orlwa@emachine.home>
><slrnfhb6p5.2vn.andrew@ilium.inval
> Reply-To: "<D6>jevind L<E5>ng" <bredband.net@ojevind.lang>
the problem is, that slrn does the header decoding before the
guess_unknown_charset routine starts to guess the charset and
the header decoding is in a somewhat other matter.
On the other hand you can't be sure that the wrongly encoded headers are
in the same charset like the body. Or it can happen that only header is
encoded bad and body encoding is OK, like e.g. Forte-Agent does.
This patch should help:
#v+
Index: charset.c
===================================================================
--- charset.c (revision 235)
+++ charset.c (working copy)
@@ -73,11 +73,13 @@
/* returns 1 if *str contains chars not in us-ascii, 0 else */
int slrn_string_nonascii(char *str)
{
+ int pos=0;
while(*str != '\0')
{
if (*str & 0x80)
- return 1;
+ return pos;
str++;
+ pos++;
}
return 0;
}
Index: mime.c
===================================================================
--- mime.c (revision 235)
+++ mime.c (working copy)
@@ -345,6 +345,7 @@
unsigned int count;
unsigned int len;
int keep_nl = 0;
+ int offset;
count = 0;
after_whitespace = NULL;
@@ -352,8 +353,33 @@
charset = NULL;
s= *s_ptr;
- if (slrn_string_nonascii(s))
- return -1;
+ if ((offset = slrn_string_nonascii(s)))
+ {
+ /* Only ascii is allowed in headers, if we find unencoded 8 bit chars
+ * convert them with the fallback charset. */
+ char *c;
+ char *charset;
+ char *smax;
+ unsigned int nconsumed;
+ SLwchar_Type wch;
+
+ /* First see if it looks like UTF-8 */
+ smax = s + strlen(s);
+ if (NULL != SLutf8_decode ((unsigned char*)(s+offset), (unsigned char*)smax, &wch, &nconsumed))
+ {
+ charset = "UTF-8";
+ }
+ else
+ {
+ charset = "iso-8859-1";
+ }
+ c= slrn_convert_substring(s, 0, strlen(s), Slrn_Display_Charset, charset, 0);
+ if(c != NULL)
+ {
+ slrn_free(*s_ptr);
+ *s_ptr=c;
+ }
+ }
while (1)
{
@@ -945,7 +971,6 @@
a->mime.was_parsed = 1; /* or will be */
- rfc1522_decode_headers (a);
/* Is there a reason to use the following line? */
/* if (NULL == find_header_line (a, "Mime-Version:")) return;*/
@@ -956,7 +981,12 @@
a->mime.needs_metamail = 1;
return 0;
}
+ if(a->mime.charset == NULL)
+ if (NULL == (a->mime.charset = guess_unknown_charset (a)))
+ return -1;
+ rfc1522_decode_headers (a);
+
switch (parse_content_transfer_encoding_line (a))
{
case ENCODED_RAW:
@@ -982,15 +1012,8 @@
a->mime.needs_metamail = 1;
return 0;
}
-
+
if ((a->mime.needs_metamail == 0) &&
- (a->mime.charset == NULL))
- {
- if (NULL == (a->mime.charset = guess_unknown_charset (a)))
- return -1;
- }
-
- if ((a->mime.needs_metamail == 0) &&
(slrn_case_strncmp("us-ascii",
a->mime.charset,8) != 0) &&
(slrn_case_strcmp(Slrn_Display_Charset,
#v-
Cheers,
Thomas
Re: {slrn} build 234: 2 small probs
Author: John E. Davis
Date: Sat, 20 Oct 2007 04:22
Date: Sat, 20 Oct 2007 04:22
15 lines
2279 bytes
2279 bytes
On Fri, 19 Oct 2007 17:55:22 +0200, Thomas Wiegner <wiegner@gmx.de> wrote: > the problem is, that slrn does the header decoding before the > guess_unknown_charset routine starts to guess the charset and > the header decoding is in a somewhat other matter. That's correct and is hopefully fixed in the latest development snapshot. I also added support for very long headers such that if a header or word is longer than the (1980's) recommended length, then it gets mime-encoded. As a test of this, I have borrowed Blinky's long X-Face for the purposes of testing whether slrn and other readers can properly deal with such a long encoded X-Face header. Thanks, --John
Re: {slrn} build 234: 2 small probs
Author: andrew
Date: Sat, 20 Oct 2007 07:48
Date: Sat, 20 Oct 2007 07:48
26 lines
2432 bytes
2432 bytes
On 2007-10-20, John E. Davis <jed@jedsoft.org> wrote:
> On Fri, 19 Oct 2007 17:55:22 +0200, Thomas Wiegner <wiegner@gmx.de>
> wrote:
>> the problem is, that slrn does the header decoding before the
>> guess_unknown_charset routine starts to guess the charset and
>> the header decoding is in a somewhat other matter.
>
> That's correct and is hopefully fixed in the latest development
> snapshot. I also added support for very long headers such that if a
> header or word is longer than the (1980's) recommended length, then it
> gets mime-encoded. As a test of this, I have borrowed Blinky's long
> X-Face for the purposes of testing whether slrn and other readers can
> properly deal with such a long encoded X-Face header.
The original problems posted: broken characters in a few MIDs and an
odd double line effect after brackets in a Subject line appear
completely rectified in the latest update. Thanks John!
Andrew
--
Among the tales of sorrow and of ruin that come down to us
from the darkness of those days there are yet some in which
amid weeping there is joy and under the shadow of death light
endures ...
Re: {slrn} build 234: 2 small probs
Author: Top
Date: Tue, 23 Oct 2007 17:48
Date: Tue, 23 Oct 2007 17:48
22 lines
1794 bytes
1794 bytes
On Fri, 19 Oct 2007 00:25:45 +0000, andrew wrote:
> On 2007-10-19, John E. Davis <jed@jedsoft.org> wrote:
>> On 18 Oct 2007 23:10:04 GMT, andrew <andrew@ilium.invalid> wrote:
>>>> 1. When typing anything brackets, either [..] or {..} in the Subject
>>>> of a new post slrn appears to create 2 lines for the subject.
>>
>> Exactly how and where does this manifest itself? Do you see the two
>> lines after slrn dumps you into your header, or while you are in slrn?
>
> [...]
>
> It is only seen in slrn. I have taken a screenshot:
>
> http://people.aapt.net.au/~adjlstrong/double_subject.png
>
> which hopefully demonstrates this clearly.
>
> Andrew
Hmmmmmm
Re: {slrn} build 234: 2 small probs
Author: Top
Date: Tue, 23 Oct 2007 18:02
Date: Tue, 23 Oct 2007 18:02
32 lines
2422 bytes
2422 bytes
On Fri, 19 Oct 2007 04:27:24 +0000, Blinky the Shark wrote: > andrew wrote: >> On 2007-10-19, Blinky the Shark <no.spam@box.invalid> wrote: >>> andrew wrote: >>>> On 2007-10-19, John E. Davis <jed@jedsoft.org> wrote: >>>>> On 18 Oct 2007 22:06:32 GMT, andrew <andrew@ilium.invalid> wrote: >>>>>> MID: <5npp2lFi2m6sU1@mid.individual.net> slrn: From: "<D6>jevind >>>>>> L<E5>ng" <bredband.net@ojevind.lang> Should be: From: "Ăjevind >>>>>> LĂ„ng"....... >>>>> >>>>> A message with this message-id is not (yet?) on my server. I imagine >>>>> that no character-set has been specified in the header. Does >>>>> commenting out the header-skipping-while-loop in the >>>>> mime.c:guess_unknown_charset function resolve the problem? If so, >>>>> does it cause other problems? >>>> >>>> Hmmmm.... this particular group is in turmoil at the moment with >>>> sporge attack. However the same poster is a regular and 2 more >>> >>> Still? >> >> Not evident using individual.net but I had a look at google groups >> search and the group is a mess of ridiculous posts. Not sure why anybody >> would target such a harmless group, ? random. > > Some people are ass holes. And this one is a GG as well? Top
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads