NetBSD Problem Report #38180

From martin@duskware.de  Thu Mar  6 08:50:32 2008
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 2494D63B882
	for <gnats-bugs@gnats.netbsd.org>; Thu,  6 Mar 2008 08:50:32 +0000 (UTC)
Message-Id: <20080305231603.B781A63B882@narn.NetBSD.org>
Date: Wed,  5 Mar 2008 23:16:03 +0000 (UTC)
From: uwe@NetBSD.org
Reply-To: uwe@NetBSD.org
To: netbsd-bugs-owner@NetBSD.org
Subject: codepage-setup is broken in emacs20 
X-Send-Pr-Version: www-1.0

>Number:         38180
>Category:       pkg
>Synopsis:       codepage-setup is broken in emacs20
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    dholland
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 06 08:55:00 +0000 2008
>Last-Modified:  Mon Nov 26 07:19:34 +0000 2018
>Originator:     Valeriy E. Ushakov
>Release:        NetBSD-4.0
>Organization:
>Environment:
NetBSD bigmac 4.0_STABLE NetBSD 4.0_STABLE (BIGMAC4) #1: Fri Feb  1 06:31:56 MSK 2008  toor@bigmac:/export/netbsd/cvs/src-release-4/sys/arch/macppc/compile/BIGMAC4 macppc
>Description:
I'm still using emacs20 and as I need access to different encodings
for Cyrillic I have (codepage-setup 1251) in my ~/.emacs to define
windows cp1251 (cyrillic) coding system.

When emacs starts up and reads ~/.emacs there's an error:

Error in init file: error: "Invalid code points: 32 32"

>How-To-Repeat:
Evaluate

  (codepage-setup 1251)

you will get the error:

  Invalid code points: 32 32
>Fix:
The patch below fixes it for me.  I've been running with this patch
for quite some time (as the date in the diff shows).

If this patch is added to 'patches' the elc file needs to be recompiled
and elc file added to 'files' and dropped into the tree in post-patch
or something.  My pkgsrc fu is really weak, so I'm just providing the
source patch and let pkgsrc folks integrate it properly.

--- lisp/international/codepage.el.orig	1999-05-02 13:46:56.000000000 +0400
+++ lisp/international/codepage.el	2006-09-14 19:06:49.000000000 +0400
@@ -527,7 +527,7 @@
 		   ??))
 	  (charsets (delq 'ascii (delq iso-name
 				       (copy-sequence charset-list))))
-	  (wide-column-char (make-char 'japanese-jisx0208 32 32)))
+	  (wide-column-char (make-char 'japanese-jisx0208 33 33)))
       (while charsets
 	(aset tbl (make-char (car charsets))
 	      (if (= (charset-width (car charsets)) 1) undef wide-column-char))

>Release-Note:

>Audit-Trail:
From: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/38180: codepage-setup is broken in emacs20
Date: Wed, 21 Nov 2018 05:15:31 +0000

 I tried to do this but perhaps I'm using emacs wrong, it doesn't seem to
 help.

Responsible-Changed-From-To: pkg-manager->dholland
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Mon, 26 Nov 2018 07:19:34 +0000
Responsible-Changed-Why:
emacs20 maintainer


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.