From: "Nick S. Grechukh" <gns@tpway.com>
To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] И снова hal+ivman
Date: Sun, 13 Nov 2005 00:25:40 +0200
Message-ID: <200511130025.40438.gns@tpway.com> (raw)
In-Reply-To: <200511121648.57662.gns@tpway.com>
[-- Attachment #1: Type: text/plain, Size: 812 bytes --]
В сообщении от Суббота, 12-Ноя-2005 16:48 Nick S. Grechukh написал(a):
> В сообщении от Суббота, 12-Ноя-2005 00:59 Vitaly Lipatov написал(a):
> > On Friday 11 November 2005 17:50, Nick S. Grechukh wrote:
> > > давайте запатчим pmount. за $50 я готов научить его всегда
> > Тут должен быть конкурс "Кто дешевле"? :)
> > > монтировать с локалью указанной в /etc/sysconfig/i18n.
> > > или использовать libnatspec, если это поможет в случае запуска
> > Может быть это снизит цену? :)
> предлагаю поделить ;)
собственно, не совсем кошерный и даже совсем некошерный патч вот.
я не знаю как это будет работать при разных локалях у пользователей, но
предполагаю что в этом случае поможет только юзерский ivman у одного из них.
(для меня проблема в любом случае неактуальна - везде cp1251)
ЗЫ: пакет отправил в дедал
[-- Attachment #2: pmount-alt-natspec.gns1.patch --]
[-- Type: text/x-diff, Size: 1475 bytes --]
--- pmount.c 2005-06-27 16:16:23 +0300
+++ pmount.c.gns 2005-11-12 23:52:32 +0200
@@ -28,6 +28,8 @@
#include "utils.h"
#include "luks.h"
+#include "natspec.h"
+
/* error codes */
const int E_ARGS = 1;
const int E_DEVICE = 2;
@@ -626,14 +628,17 @@
/* if no charset was set explicitly, autodetect UTF-8 */
if( !iocharset ) {
const char* codeset;
- codeset = nl_langinfo( CODESET );
+// codeset = nl_langinfo( CODESET );
+ codeset = natspec_get_filename_encoding("");
debug( "no iocharset given, current locale encoding is %s\n", codeset );
- if( codeset && !strcmp( codeset, "UTF-8" ) ) {
- debug( "locale encoding uses UTF-8, setting iocharset to 'utf8'\n" );
- iocharset = "utf8";
- }
+// if( codeset && !strcmp( codeset, "UTF-8" ) ) {
+// debug( "locale encoding uses UTF-8, setting iocharset to 'utf8'\n" );
+// iocharset = "utf8";
+// }
+ debug("no iocharset given, using libnatspec: %s\n",codeset);
+ iocharset = strdup(codeset);
}
/* clean stale locks */
--- Makefile 2005-11-12 23:51:00 +0200
+++ Makefile.gns 2005-11-12 23:52:39 +0200
@@ -1,4 +1,4 @@
-LIBS=-lsysfs
+LIBS=-lsysfs -lnatspec
CFLAGS?=-Wall -W -O2
HAL_CFLAGS=$(shell pkg-config hal --cflags)
HAL_LDFLAGS=$(shell pkg-config hal --libs)
next prev parent reply other threads:[~2005-11-12 22:25 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-11 10:17 Alexei V. Mezin
2005-11-11 10:50 ` Epiphanov Sergei
2005-11-11 13:50 ` Nick S. Grechukh
2005-11-11 11:59 ` Epiphanov Sergei
2005-11-11 12:24 ` Alexei V. Mezin
2005-11-11 14:34 ` Nick S. Grechukh
2005-11-11 12:40 ` Alexei V. Mezin
2005-11-11 14:50 ` Nick S. Grechukh
2005-11-11 14:55 ` Alexei V. Mezin
2005-11-11 17:12 ` Nick S. Grechukh
2005-11-11 15:26 ` Alexei V. Mezin
2005-11-11 15:35 ` Led
2005-11-11 22:59 ` Vitaly Lipatov
2005-11-12 14:48 ` Nick S. Grechukh
2005-11-12 22:25 ` Nick S. Grechukh [this message]
2005-11-12 21:40 ` Alexei V. Mezin
2005-11-14 9:34 ` Alexey Morsov
2005-11-14 9:42 ` Epiphanov Sergei
2005-11-14 9:48 ` Alexey Morsov
2005-11-14 9:44 ` Sviataslau Svirydau
2005-11-14 9:48 ` Alexei V. Mezin
2005-11-14 12:03 ` Nick S. Grechukh
2005-11-11 14:18 ` Nick S. Grechukh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200511130025.40438.gns@tpway.com \
--to=gns@tpway.com \
--cc=sisyphus@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git