Linux console tools development discussion
 help / color / mirror / Atom feed
* [kbd] [patch] fixup previous changes to loadunimap.c
@ 2008-03-30 17:19 Mike Frysinger
  2008-04-01 14:18 ` Alexey Gladkov
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2008-03-30 17:19 UTC (permalink / raw)
  To: kbd


[-- Attachment #1.1: Type: text/plain, Size: 298 bytes --]

iirc, a Debian patch made the change to loadunimap.c:
-static char *unidirpath[] = { "", DATADIR "/" UNIMAPDIR "/", 0 };
+static char *unidirpath[] = { "", DATADIR "/" TRANSDIR "/", 0 };

that shouldnt be an exclusive change, it should be both dirs.  the attached 
patch fixes things.
-mike

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

[-- Attachment #2: kbd-1.12-unimap.patch --]
[-- Type: text/x-diff, Size: 487 bytes --]

--- kbd-1.12/src/loadunimap.c.orig	2006-08-24 13:48:11.000000000 +0100
+++ kbd-1.12/src/loadunimap.c	2006-08-24 13:49:07.000000000 +0100
@@ -28,7 +28,7 @@
 extern char *progname;
 extern int force;
 
-static char *unidirpath[] = { "", DATADIR "/" TRANSDIR "/", 0 };
-static char *unisuffixes[] = { "", ".sfm", ".uni", 0 };
+static char *unidirpath[] = { "", DATADIR "/" UNIMAPDIR "/", DATADIR "/" TRANSDIR "/", 0 };
+static char *unisuffixes[] = { "", ".uni", ".sfm", 0 };

 #ifdef MAIN

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [kbd] [patch] fixup previous changes to loadunimap.c
  2008-03-30 17:19 [kbd] [patch] fixup previous changes to loadunimap.c Mike Frysinger
@ 2008-04-01 14:18 ` Alexey Gladkov
  0 siblings, 0 replies; 2+ messages in thread
From: Alexey Gladkov @ 2008-04-01 14:18 UTC (permalink / raw)
  To: Linux console tools development discussion

Mike Frysinger wrote:
> iirc, a Debian patch made the change to loadunimap.c:
> -static char *unidirpath[] = { "", DATADIR "/" UNIMAPDIR "/", 0 };
> +static char *unidirpath[] = { "", DATADIR "/" TRANSDIR "/", 0 };
> 
> that shouldnt be an exclusive change, it should be both dirs.  the attached 
> patch fixes things.

Commit 1.12-21-g5f2bf61 was wrong. It should be fixed.
Only following change is needed for compatibility with console-tools:

-static char *unisuffixes[] = { "", ".uni", 0 };
+static char *unisuffixes[] = { "", ".sfm", ".uni", 0 };

Thanks!

-- 
Rgrds, legion


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-01 14:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-30 17:19 [kbd] [patch] fixup previous changes to loadunimap.c Mike Frysinger
2008-04-01 14:18 ` Alexey Gladkov

Linux console tools development discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/kbd/0 kbd/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kbd kbd/ http://lore.altlinux.org/kbd \
		kbd@lists.altlinux.org kbd@lists.altlinux.ru kbd@lists.altlinux.com
	public-inbox-index kbd

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.kbd


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git