From owner-freebsd-questions@freebsd.org Wed May 6 11:00:07 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 236CE2C02EB for ; Wed, 6 May 2020 11:00:07 +0000 (UTC) (envelope-from vas@sibptus.ru) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49HDBt0lk4z4TTf for ; Wed, 6 May 2020 11:00:05 +0000 (UTC) (envelope-from vas@sibptus.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=JjQ3UYsJLTCKfwTHVGeb3AltIfxtA8xNIs7PVh2tkys=; b=jlBn+FZKpMH3HYRuiJboLYOo7n 6fiWlnUebA6fkrO5GbImlvIOOL5vSwVus0vTSWOeW3jFFMkxr32Y+WhxxWgPdafhMxKnXWs3J4TFT BpYPPQ3orkNJl3T2L2I82YNK9mceHyCx43Jqr3duadMHLhjlFOiLSnAZnWsUl9ybtjck=; Received: from vas by admin.sibptus.ru with local (Exim 4.93.0.4 (FreeBSD)) (envelope-from ) id 1jWHmW-000KFr-Lx; Wed, 06 May 2020 18:00:04 +0700 Date: Wed, 6 May 2020 18:00:04 +0700 From: Victor Sudakov To: Polytropon Cc: freebsd-questions@freebsd.org Subject: Re: Brother HL-L2340D printer and lpd? Message-ID: <20200506110004.GA77496@admin.sibptus.ru> References: <20200503171259.GA48627@admin.sibptus.ru> <20200505161952.GA34844@admin.sibptus.ru> <20200505185510.00b622e3.freebsd@edvax.de> <20200505180101.GA35751@admin.sibptus.ru> <20200505202331.53374f21.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline In-Reply-To: <20200505202331.53374f21.freebsd@edvax.de> X-PGP-Key: http://admin.sibptus.ru/~vas/ X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 X-Rspamd-Queue-Id: 49HDBt0lk4z4TTf X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sibptus.ru header.s=20181118 header.b=jlBn+FZK; dmarc=pass (policy=none) header.from=sibptus.ru; spf=pass (mx1.freebsd.org: domain of vas@sibptus.ru designates 2001:19f0:5001:21dc::10 as permitted sender) smtp.mailfrom=vas@sibptus.ru X-Spamd-Result: default: False [-7.31 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[sibptus.ru:s=20181118]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; SUBJECT_ENDS_QUESTION(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[sibptus.ru:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[sibptus.ru,none]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5000::/38, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-3.21)[ip: (-9.89), ipnet: 2001:19f0:5000::/38(-4.94), asn: 20473(-1.19), country: US(-0.05)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 May 2020 11:00:07 -0000 --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Polytropon wrote: > > > Personally, I use "encript" for turning ASCII reports > >=20 > > enscript is good, but it has huge problems with Cyrillic, and is totally > > lacking multibyte support (UTF-8). >=20 > Correct. That's why I had to use it with ISO-8859-1 standard > western europe character set (single byte per symbol) in order > to get Umlauts displayed correctly. Maybe another processing > step ("recode utf-8..koi8 ") can be used in the printer > filter. No matter how I tried "enscript -X koi8 -p test.ps russian-koi8.txt" on Russian files, the resulting PostScript file is shown by GhostScript with question marks instead of Russian characters. I've also tried the ISO charset: $ iconv -f koi8-r -t ISO-8859-5 < russian-koi8.txt > russian-iso.txt $ enscript -X cyrillic -p test.ps russian-iso.txt [ 3 pages * 1 copy ] left in test.ps 53 characters were missing $ I still get the same question marks (I use gs's png driver to view the resulting PostScript). --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJespi0AAoJEA2k8lmbXsY07dUH+gPsNpAxRCFnmPKrKzM/Qk/e 2ooYjJKNdleCTmVhN0LludA1T+Xwq9CYM+j1xz2Z4fCZEHOmvjI7CPBE/kI92c73 p9Z2KVcvde2Oj9pUDHNYwzlZ6f4lQM7WwMnhJm5xLt2nkZebpW/1RjaAPCTYcLud T0HkVYoAqHlXw20ZPQUavF3ZgVtoPL9jxOaNOuMAQkGdwYejYeaIUc0cNTVviYAp lVH1to3XFM584eJwuMtu7WPtEzyIYz2jA0xir2HR8IdpdKmQmt2efivYpggdU0kF IyF3XI07bJq3m81wbJ/geR2oAZhz8Lrh3Pf93PAF780iD9bMzlbx3/wxu3tbyos= =9kll -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5--