1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/net-im/ysm/files/patch-src-YSM_Charset.c
Sergey Matveychuk c8baef401e Add two patches:
- Fix iconv() arguments to make conversions correct.
- Add an application name for readline. It allows to set options for readline
  from user config files*. And enable history.

* example ~/.inputrc:
$if ysm
set editing-mode emacs
set horizontal-scroll-mode off
$endif

PR:		ports/119447
Submitted by:	Eugene Grosbein <eugen at kuzbass.ru>
2008-01-12 19:46:54 +00:00

16 lines
520 B
C

--- src/YSM_Charset.c.orig 2008-01-12 22:33:08.000000000 +0300
+++ src/YSM_Charset.c 2008-01-12 22:33:31.000000000 +0300
@@ -75,9 +75,9 @@
}
}
- ASCII_2_ucs4 = iconv_open("UCS4","ASCII");
- input_2_ucs4 = iconv_open("UCS4",charset_from);
- ucs4_2_output = iconv_open(charset_to,"UCS4");
+ ASCII_2_ucs4 = iconv_open("UCS-4","ASCII");
+ input_2_ucs4 = iconv_open("UCS-4",charset_from);
+ ucs4_2_output = iconv_open(charset_to,"UCS-4");
if ((ASCII_2_ucs4 == (iconv_t)(-1))
|| (input_2_ucs4 == (iconv_t)(-1))