From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) From: arisawa In-Reply-To: Date: Sun, 16 Nov 2014 09:20:11 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: <8623766F-C1A7-4D9E-910E-F5B92171CD92@ar.aichi-u.ac.jp> References: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] Pjpeg in /sys/lib/mimetype Topicbox-Message-UUID: 2823a820-ead9-11e9-9d60-3106f5b1d025 Hello, I believe the line: .jpg image pjpeg - = y should be removed. I found another curiosity in the file. term% grep compress /sys/lib/mimetype .Z - - compress m .taz application x-tar compress m .trz application x-tar compress m .z - - compress m .Z - - compress m term%=20 Does this mean that file suffixes are case sensitive in determining the = mime type? If so, should files with suffix =E2=80=9C.JPG=E2=80=9D be renamed to = =E2=80=9C.jpg=E2=80=9D ? Kenji Arisawa 2014/11/14 21:13=E3=80=81arisawa = =E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB=EF=BC=9A > Hello, >=20 > It is curious for me that ".jpg" has two entries in /sys/lib/mimetype. > term% grep jpeg /sys/lib/mimetype > .jfif image jpeg - y > .jfif-tbnl image jpeg - y > .jpe image jpeg - y > .jpeg image jpeg - y > .jpg image jpeg - y > .jpg image pjpeg - y > term% >=20 > The file is currently consulted by only two applications: mail and = httpd. > I thought that the file provides conventional way to determine mime = type from file suffix. > If so, what is the mime type for "foo.jpg"? >=20 > Kenji arisawa >=20 >=20