Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37897783
en ru br
ALT Linux repos
S:379-alt2
5.0: 241-alt1
4.1: 235-alt1
4.0: 231-alt1
3.0: 202-alt2

Group :: Terminals
RPM: xterm

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: xterm-alt-i18n.patch
Download


--- xterm-202/button.c.orig	2005-04-22 04:21:53 +0400
+++ xterm-202/button.c	2005-06-08 15:52:10 +0400
@@ -62,6 +62,7 @@ button.c	Handles button events in the te
 #include <xterm.h>
 
 #include <stdio.h>
+#include <ctype.h>
 
 #include <X11/Xatom.h>
 #include <X11/Xmu/Atoms.h>
@@ -2317,6 +2319,16 @@ static int charClass[256] =
      48,  48,  48,  48,  48,  48,  48,  48};
 /* *INDENT-ON* */
 
+void
+init_classtab (void)
+{
+	int i;
+
+	for (i = 1; i < 256; ++i)
+		if (isalnum (i))
+			charClass[i] = '0';
+}
+
 int
 SetCharacterClassRange(int low,	/* in range of [0..255] */
 		       int high,
--- xterm-202/charclass.c.orig	2005-01-14 04:50:02 +0300
+++ xterm-202/charclass.c	2005-06-08 15:52:10 +0400
@@ -27,6 +27,7 @@
 
 #include <xterm.h>
 #include <charclass.h>
+#include <ctype.h>
 
 #if OPT_WIDE_CHARS
 
@@ -76,6 +77,7 @@ SetCharacterClassRange(int low, int high
 void
 init_classtab(void)
 {
+    int i;
     const int size = 50;
 
     classtab = TypeMallocN(struct classentry, size);
@@ -99,6 +101,10 @@ init_classtab(void)
     SetCharacterClassRange(215, 215, IDENT);
     SetCharacterClassRange(247, 247, IDENT);
 
+	for (i = 1; i < 256; ++i)
+	if (isalnum (i) && CharacterClass(i) != 48)
+		SetCharacterClassRange(i, i, 48);
+
     /* added Unicode classes */
     SetCharacterClassRange(0x0100, 0xffdf, ALNUM);	/* mostly characters */
     SetCharacterClassRange(0x037e, 0x037e, IDENT);	/* Greek question mark */
--- xterm-202/main.c.orig	2005-06-08 15:52:10 +0400
+++ xterm-202/main.c	2005-06-08 15:52:10 +0400
@@ -2071,10 +2071,8 @@ main(int argc, char *argv[]ENVP_ARG)
     XtSetValues(toplevel, ourTopLevelShellArgs,
 		number_ourTopLevelShellArgs);
 
-#if OPT_WIDE_CHARS
     /* seems as good a place as any */
     init_classtab();
-#endif
 
     /* Parse the rest of the command line */
     TRACE_ARGV("After XtOpenApplication", argv);
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin