🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #8311

Re: 8-bit characters in postings

#8311
From: Kristian Köhntopp
Date: Fri, 10 Jan 1997 00:00
55 lines
2389 bytes
guckes@banach.math.fu-berlin.de (Sven Guckes) writes:
>Here is my setup:
>	
>	set data-bits			8
>	set charset			iso-8859-1

At least in nn-6.5.1, setting data-bits as well as charset is
superfluous and has no effect. This is true for nn-6.5.1 with
my patches as well.

In variable.c you find the following code fragment which
handles "set charset":

	 case 3:
	    {
		struct chset *csp;
    		struct variable_defs *dbvar;

		dbvar = lookup_variable("data-bits");

	        if (on && val_string) {
		    if ((csp = getchset(val_string)) == NULL)
		        msg("Illegal value for `%s' variable", variable);
		    else {
		        curchset = csp;
			data_bits = csp->cs_width ? csp->cs_width : 7;
			dbvar->var_flags &= ~V_MODIFIED;
		    }
	        } else
		    msg("Cannot unset special `%s' variable", variable);
	    }
	    break;
	}
	break;


As you can see, getchset() gets you a struct charset *csp,
which in turn is used to overwrite data_bits. data_bits is the
place, where "set data-bits" stores whatever you set to it.
When using charsets with nn-6.5.1, data-bits need not be set.

In fact, data-bits is an incomplete concept for handling
character sets which should be abandoned altogether (or at
least discouraged), because it conveys to little information
for proper handling of character sets.

Kristian
--
Kristian Koehntopp, Wassilystrasse 30, 24113 Kiel, +49 431 688897
"Genau. Es heisst ja schliesslich '1. RfD: Loeschung von de.talk.bizarre' und
 nicht '1. RfD: Wegnahme des gelben Entchens'. Also hoer auf, hier rumzumemmen.
 Oder willst du ein zweiter C.L. werden?" -- Torsten =ToJe= Jerzembeck

Technical Details
Message-ID: <5b54s0$ffg@white.koehntopp.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail
References: <5b14aq$1a2@trixi.pibbs.nbg.sub.org> <5b24rr$sbq@server05.icaen.uiowa.edu> <slrn5da9ps.44r.guckes@banach.math.fu-berlin.de>

Show Full Headers
Complete Article Headers
Message-ID: <5b54s0$ffg@white.koehntopp.de>
Subject: Re: 8-bit characters in postings
Date: Fri, 10 Jan 1997 00:00:00 +0000
From: KRIS@KOEHNTOPP.DE (Kristian Köhntopp)
References: <5b14aq$1a2@trixi.pibbs.nbg.sub.org> <5b24rr$sbq@server05.icaen.uiowa.edu> <slrn5da9ps.44r.guckes@banach.math.fu-berlin.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail
X-Deja-AN: 208916001
Organization: Pinguin an Bord.
Newsgroups: news.software.nn
X-copyright: (C) Copyright 1997 Kristian Koehntopp -- All rights reserved.