From 55d1340d5d623aeddbb98cbd445dc80ecfbabe83 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Jul 12 2010 10:57:03 +0000 Subject: fix UTF-8 output in list of logged users (#490443) --- diff --git a/bsd-finger-wide-char-support5.patch b/bsd-finger-wide-char-support5.patch index 96d5cca..9a8a2d5 100644 --- a/bsd-finger-wide-char-support5.patch +++ b/bsd-finger-wide-char-support5.patch @@ -8,6 +8,16 @@ #include "finger.h" #ifdef _USAGI #include "version.h" +@@ -211,6 +212,9 @@ + struct utmp *uptr; + char name[UT_NAMESIZE + 1]; + ++ if (setlocale (LC_ALL, "") != NULL) ++ set_haslocale(); ++ + name[UT_NAMESIZE] = '\0'; + + /* @@ -286,6 +287,9 @@ struct utmp *uptr; int dolocal, *used; diff --git a/finger.spec b/finger.spec index 9670b36..160502d 100644 --- a/finger.spec +++ b/finger.spec @@ -1,7 +1,7 @@ Summary: The finger client Name: finger Version: 0.17 -Release: 40%{?dist} +Release: 41%{?dist} License: BSD Group: Applications/Internet Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/bsd-finger-%{version}.tar.gz @@ -104,6 +104,9 @@ rm -rf ${RPM_BUILD_ROOT} %doc COPYING %changelog +* Mon Jul 12 2010 Petr Lautrbach 0.17-41 +- fix UTF-8 output in list of logged users (#490443) + * Thu Jul 08 2010 Petr Lautrbach 0.17-40 - added license text