Your message dated Sun, 23 Mar 2014 13:04:35 +0900
with message-id <[email protected]>
and subject line Re: Bug#741220: mime-support: command : file --mime doc.html 
return : doc.html: text/x-c++; charset=utf-8
has caused the Debian Bug report #741220,
regarding mime-support: command : file --mime doc.html return : doc.html: 
text/x-c++; charset=utf-8
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
741220: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741220
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mime-support
Version: 3.52-1
Severity: important

i have problem on use php mimetype detection
think that is related to debian config files
command : file --mime doc.html return : doc.html: text/x-c++; charset=utf-8
doc.html file: http://dpaste.com/hold/1709425/
also tried this <?php echo mime_content_type('doc.html') ;?> that return: 
text/x-c++
but when i use this command  mime-type doc.html it return text/html
this problem cause when in server i use ojs and when i upload html files detect 
then as untitled instead of html
i read all ojs FAQ about this problem and try them with no success
http://pkp.sfu.ca/wiki/index.php/PKP_Frequently_Asked_Questions#HTML_Galleys_don.27t_display_properly_.2F_files_I_upload_aren.27t_being_identified_properly.



-- System Information:
Debian Release: 7.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

mime-support depends on no packages.

Versions of packages mime-support recommends:
ii  file  5.11-2+deb7u1

mime-support suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Control: tag -1 unreproducible

Le Mon, Mar 10, 2014 at 08:53:17AM +0330, Hosein Rastegar a écrit :
> 
> i have problem on use php mimetype detection
> think that is related to debian config files
> command : file --mime doc.html return : doc.html: text/x-c++; charset=utf-8
> doc.html file: http://dpaste.com/hold/1709425/
> also tried this <?php echo mime_content_type('doc.html') ;?> that return: 
> text/x-c++
> but when i use this command  mime-type doc.html it return text/html
> this problem cause when in server i use ojs and when i upload html files 
> detect then as untitled instead of html
> i read all ojs FAQ about this problem and try them with no success
> http://pkp.sfu.ca/wiki/index.php/PKP_Frequently_Asked_Questions#HTML_Galleys_don.27t_display_properly_.2F_files_I_upload_aren.27t_being_identified_properly.
> 

Dear Hosein,

thank you for report and sorry for not answering faster.

Unfortunately, I could not reproduce your problem, see the example below.

$ curl http://dpaste.com/1709425/plain/
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered)">
<style type="text/css">
<!--
 /* Font Definitions */
 @font-face
    {font-family:"Cambria Math";
    panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
    {font-family:Calibri;
    panose-1:2 15 5 2 2 2 4 3 2 4;}
 
$ curl http://dpaste.com/1709425/plain/ > doc.html
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   488    0   488    0     0   1941      0 --:--:-- --:--:-- --:--:--  3725

$ file --mime doc.html 
doc.html: text/html; charset=us-ascii

$ dpkg-query --show file mime-support
file    5.11-2+deb7u2
mime-support    3.52-1


I am therefore closing this bug report.

Have a nice Sunday,

-- 
Charles Plessy
Tsurumi, Kanagawa, Japan

--- End Message ---

Reply via email to