Re: utf8 patch for mc, slang 2 version



Hi,

I have patches for the NFC / NFD issue and two other patches for the
Darwin/Mac Platform for the current UTF-8 version, with all patches
applied (I don't know where to post it, so I post here, sorry):

config.h @ 3
+#ifdef __APPLE__
+#define unix 1
+#endif

config.h @ 53
+#include <wchar.h>


vfs.c @ 507
+#ifdef __APPLE__
+else
+{
+gchar* gp2 = g_utf8_normalize (result->d_name,-1,G_NORMALIZE_ALL_COMPOSE);
+		strncpy(result->d_name,gp2,strlen(gp2)+1);
+		g_free(gp2);
+	}
+#endif

// this is the main conversion routine - from the Glib.

This patch makes possible displaying all 2 byte Utf-8 encoded chars
(all West and Central-European languages and Cyrillic letters as well)
On any HPFS/HPFS+ filesystem.
The Israeli (ivrit) and others like Chinese and Japanese are showing
up corretly, but they crash the windowing, because of they are
multi-byte chars.

Question: how the length of these multi-byte chars can be decided?
Does anyone have any idea?

Two issues remained open:

- the panel header and the footer command line.
Does anyone here who knows where can I find these items (screen.c) ?
- any other Mac users who can test these changes, please?


Huge Kudos goes to Akos Huszti for great help, research and support!

Regards,

Balint


On 21/09/05, Pavel Tsekov <ptsekov gmx net> wrote:
> Hello,
>
> Maybe this discussion should be moved to general list - mc at gnome dot
> org.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]