Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh changing cp1250 letters beyond recognition
- X-seq: zsh-workers 11821
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
- To: Jan Fedak <J.Fedak@xxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: zsh changing cp1250 letters beyond recognition
- Date: Thu, 08 Jun 2000 10:55:38 +0100
- In-reply-to: "Your message of Thu, 08 Jun 2000 10:51:15 BST." <0FVT001HKY1FC6@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
> 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@xxxxxxxxxxxxxxxxxxxxxxxxx>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author