zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@cambridgesiliconradio.com>
To: Jan Fedak <J.Fedak@sh.cvut.cz>,
	zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Re: zsh changing cp1250 letters beyond recognition
Date: Thu, 08 Jun 2000 10:55:38 +0100	[thread overview]
Message-ID: <0FVT001IBY8QC6@la-la.cambridgesiliconradio.com> (raw)
In-Reply-To: "Your message of Thu, 08 Jun 2000 10:51:15 BST." <0FVT001HKY1FC6@la-la.cambridgesiliconradio.com>

> There's a bug that characters in this range present on the command line
> don't get turned properly into zsh's internal representation.
>...
> I'll send a separate one
> for 3.0.8 (the fix is the same, but the context for the patch is
> different).

Here's the patch for 3.0.8.

--- Src/init.c.old	Thu Jun  8 10:33:34 2000
+++ Src/init.c	Thu Jun  8 10:35:22 2000
@@ -37,11 +37,23 @@
 main(int argc, char **argv)
 {
     char **t;
+    int t0;
 #ifdef USE_LOCALE
     setlocale(LC_ALL, "");
 #endif
 
     global_permalloc();
+
+    /*
+     * Provisionally set up the type table to allow metafication.
+     * This will be done properly when we have decided if we are
+     * interactive
+     */
+    typtab['\0'] |= IMETA;
+    typtab[STOUC(Meta)  ] |= IMETA;
+    typtab[STOUC(Marker)] |= IMETA;
+    for (t0 = (int)STOUC(Pound); t0 <= (int)STOUC(Nularg); t0++)
+	typtab[t0] |= ITOK | IMETA;
 
     for (t = argv; *t; *t = metafy(*t, -1, META_ALLOC), t++);
 

-- 
Peter Stephenson <pws@cambridgesiliconradio.com>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070


  reply	other threads:[~2000-06-08  9:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20000607231610.A6504@tornado.sh.cvut.cz>
2000-06-08  9:51 ` Peter Stephenson
2000-06-08  9:55   ` Peter Stephenson [this message]
2000-06-08 17:02     ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0FVT001IBY8QC6@la-la.cambridgesiliconradio.com \
    --to=pws@cambridgesiliconradio.com \
    --cc=J.Fedak@sh.cvut.cz \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).