ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Vjacheslav A. Brunev" <bru@post.tomica.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: [Comm] Кодировка при монтировании CD-ROM
Date: Thu, 2 Aug 2007 10:19:32 +0700
Message-ID: <200708021019.33623.bru@post.tomica.ru> (raw)

Никак не получается сделать "правильную" кодировку (cp1251) при монтировании 
CD/DVD-ROM. Система ALC-3.

Локаль:

LANG=ru_RU.CP1251
LC_CTYPE="ru_RU.CP1251"
LC_NUMERIC="ru_RU.CP1251"
LC_TIME="ru_RU.CP1251"
LC_COLLATE="ru_RU.CP1251"
LC_MONETARY="ru_RU.CP1251"
LC_MESSAGES="ru_RU.CP1251"
LC_PAPER="ru_RU.CP1251"
LC_NAME="ru_RU.CP1251"
LC_ADDRESS="ru_RU.CP1251"
LC_TELEPHONE="ru_RU.CP1251"
LC_MEASUREMENT="ru_RU.CP1251"
LC_IDENTIFICATION="ru_RU.CP1251"
LC_ALL=

Политика HAL такие.
Файл /etc/hal/fdi/policy/01-charset.fdi:

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->

<deviceinfo version="0.2">

  <device>
    <match key="volume.policy.should_mount" bool="true">
      <match key="@block.storage_device:storage.policy.should_mount" 
bool="true">
        <match key="volume.fstype" string="vfat">
         <merge key="volume.policy.mount_option.iocharset" 
type="string">cp1251</merge>
         <merge key="volume.policy.mount_option.codepage" 
type="string">866</merge>
        </match>
      </match>
    </match>
    <match key="storage.policy.should_mount" bool="true">
      <match key="storage.no_partitions_hint" bool="true">
        <match key="storage.drive_type" string="cdrom">
            <merge key="storage.policy.mount_option.utf8" 
type="bool">true</merge>
            <merge key="storage.policy.mount_option.iocharset" 
type="string">cp1251</merge>
        </match>
      </match>
    </match>
  </device>

</deviceinfo>

-- 
С уважением Вячеслав.


             reply	other threads:[~2007-08-02  3:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-02  3:19 Vjacheslav A. Brunev [this message]
2007-08-02  6:00 ` Yurkovsky Andrey

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=200708021019.33623.bru@post.tomica.ru \
    --to=bru@post.tomica.ru \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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