home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   JAMNNTPD      Support for the JAMNNTPD software client      2,630 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 932 of 2,630   
   Scott Street to Bjrn Felten   
   xlat bug?   
   07 Feb 15 02:52:16   
   
   On 6/25/2012 2:10 PM, � wrote:   
      
   >     While you're at it, can you see if you can do something about those   
   > lines in nntpserv.c (line 2731 ff in the original file):   
      
   > resulting in a "CHRS: UTF-8 2" control line (and yes, it *is* not   
   > according to FTS-5003.001).   
      
      
   >     I guess something like   
   >   
   >     if(strcmp(chrs,"UTF-8")==0) {   
   >           sprintf(line,"CHRS: %s 4",chrs);   
   >     } else {   
   >           sprintf(line,"CHRS: %s 2",chrs);   
   >     }   
   >   
   >     ... would do the trick? Even I'm sure there are more elegant ways to   
   > fix this bug -- I'm a Pascal and Assembler programmer myself...  8-)   
      
   Not a bad guess for a Pascal and ASM programmer.  :)   I'm thinking something   
   to that effect.   
      
   Code modified for this post - the whole server needs work to support UTF-8   
   better then it does.  However, the code in nntpserv.c:   
      
   was:   
         if(chrs[0])   
               sprintf(&kludges[strlen(kludges)],"\01CHRS: %s 2"chhrs);   
      
      
   became:   
      
         if(chrs[0])   
         {   
            if(!strcmp(chrs, "UTF-8"))   
            {   
               sprintf(&kludges[strlen(kludges)],"\01CHRS: %s 4"chhrs);   
            }   
            else   
            {   
               sprintf(&kludges[strlen(kludges)],"\01CHRS: %s 2"chhrs);   
            }   
         }   
      
      
      
      
   Scott   
   ╔═══╗   
   ║   ║   
   ╚═══╝   
      
   ---   
    * Origin: -=[ Space Station Alpha ]=- (1:266/420.0)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca