From: "Yuri N. Sedunov" <aris@altlinux.org>
To: devel@lists.altlinux.org
Subject: Re: [devel] q: file vs shared-mime-info
Date: Fri, 11 Mar 2011 18:25:53 +0300
Message-ID: <1299857153.5363.83.camel@arisbook> (raw)
In-Reply-To: <20110311142701.GT18312@osdn.org.ua>
В Птн, 11/03/2011 в 16:27 +0200, Michael Shigorin пишет:
> Здравствуйте.
> file -bi test.sh выдаёт test/x-shellscript, в то время как в
> /usr/share/mime/globs присутствует application/x-shellscript;
> в итоге приходится подставлять костыли вместо аккуратного
> преобразования.
>
> Аналогично из уже найденного:
> application/x-bzip2 -- application/x-bzip
> text/x-c -- text/x-csrc
> text/x-diff -- text/x-patch
> text/x-shellscript -- application/x-shellscript
>
> Кто-нить в курсе, за чем должен быть приоритет (если в принципе
> существует авторитетный источник)? Пошёл было в b.fd.o, но решил
> переспросить -- вдруг неправ file.
Подобных примеров есть еще, -- file еще не любит XML, например.
$ test-mime /usr/share/gnome-games/swell-foop/*.js
File "/usr/share/gnome-games/swell-foop/About.js" has a mime-type of application/javascript
File "/usr/share/gnome-games/swell-foop/Board.js" has a mime-type of application/javascript
File "/usr/share/gnome-games/swell-foop/Light.js" has a mime-type of application/javascript
File "/usr/share/gnome-games/swell-foop/main.js" has a mime-type of application/javascript
File "/usr/share/gnome-games/swell-foop/Path.js" has a mime-type of application/javascript
File "/usr/share/gnome-games/swell-foop/Score.js" has a mime-type of application/javascript
File "/usr/share/gnome-games/swell-foop/Settings.js" has a mime-type of application/javascript
File "/usr/share/gnome-games/swell-foop/ThemeLoader.js" has a mime-type of application/javascript
[aris@arisbook PTLens]$ file -i /usr/share/gnome-games/swell-foop/*.js
/usr/share/gnome-games/swell-foop/About.js: text/x-c++ charset=us-ascii
/usr/share/gnome-games/swell-foop/Board.js: text/x-c++ charset=us-ascii
/usr/share/gnome-games/swell-foop/Light.js: text/x-c++ charset=us-ascii
/usr/share/gnome-games/swell-foop/main.js: text/x-c++ charset=us-ascii
/usr/share/gnome-games/swell-foop/Path.js: text/plain charset=us-ascii
/usr/share/gnome-games/swell-foop/Score.js: text/x-c++ charset=us-ascii
/usr/share/gnome-games/swell-foop/Settings.js: text/x-c++ charset=us-ascii
/usr/share/gnome-games/swell-foop/ThemeLoader.js: text/plain charset=us-ascii
--
Yuri N. Sedunov
prev parent reply other threads:[~2011-03-11 15:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-11 14:27 Michael Shigorin
2011-03-11 15:25 ` Yuri N. Sedunov [this message]
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=1299857153.5363.83.camel@arisbook \
--to=aris@altlinux.org \
--cc=devel@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 Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git