[Touch-packages] [Bug 1485217] Re: Magic for text/x-tex broken

2015-10-23 Thread Jan Philipp Wächter
The bug is now fixed in Debian upstream (revision 378, thanks to user "slomo"):
http://anonscm.debian.org/viewvc/pkg-freedesktop/trunk/shared-mime-info/debian/patches/061_tex-matlab.patch?view=log

It is not (and probably never was) present in the Freedesktop sources:
http://cgit.freedesktop.org/xdg/shared-mime-info/tree/freedesktop.org.xml.in

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shared-mime-info in
Ubuntu.
https://bugs.launchpad.net/bugs/1485217

Title:
  Magic for text/x-tex broken

Status in shared-mime-info package in Ubuntu:
  Incomplete

Bug description:
  The magic for text/x-tex in Ubuntu 15.04 is broken as it assigns
  text/x-tex to any text file which contains the word "section",
  "chapter" or "documentclass" within the first 100 characters.

  This behavior is fixed if one adds backslashes to the appropriate
  match values in /usr/share/mime/packages/freedesktop.org.xml (.in)
  (see attached patch).

  Edit: You can reproduce this bug as follows.

  Is (output on Ubuntu 15.04):
  user@host:/tmp/mime$ dpkg -s shared-mime-info | grep "Version"
  Version: 1.3-1
  user@host:/tmp/mime$ sed '30568,30638!d' 
/usr/share/mime/packages/freedesktop.org.xml

  TeX document
  مستند TeX
  Dakument TeX
  Документ — TeX
  document TeX
  Dokument TeX
  Dogfen TeX 
  TeX-dokument
  TeX-Dokument
  έγγραφο TeX
  TeX document
  TeX-dokumento
  documento TeX
  TeX dokumentua
  TeX-asiakirja
  TeX skjal
  document TeX
  cáipéis TeX
  documenton TeX
  מסמך TeX
  TeX dokument
  TeX-dokumentum
  Dokumen TeX
  Documento TeX
  TeX ドキュメント
  TeX құжаты
  TeX 문서
  TeX dokumentas
  TeX dokuments
  Dokumen TeX
  TeX-dokument
  TeX-document
  TeX-dokument
  Dokument TeX
  documento TeX
  Documento TeX
  Document TeX
  документ TeX
  Dokument TeX
  Dokument TeX
  Dokument TeX
  ТеХ документ
  TeX-dokument
  TeX belgesi
  документ TeX
  Tài liệu TeX
  TeX 文档
  TeX 文件
  
  
  
  
  
  
  
  
  
  

  
  

  
  

  
  

  

  user@host:/tmp/mime$ echo "Normal text using 'sectional'." > no_tex
  user@host:/tmp/mime$ mimetype no_tex
  no_tex: text/x-tex
  user@host:/tmp/mime$ echo "\section{A \TeX Section}" > tex_file.tex
  user@host:/tmp/mime$ mimetype tex_file.tex
  tex_file.tex: text/x-tex

  
  Should (is, after patching):
  user@host:/tmp/mime$ sed '30568,30638!d' 
/usr/share/mime/packages/freedesktop.org.xml

  TeX document
  مستند TeX
  Dakument TeX
  Документ — TeX
  document TeX
  Dokument TeX
  Dogfen TeX 
  TeX-dokument
  TeX-Dokument
  έγγραφο TeX
  TeX document
  TeX-dokumento
  documento TeX
  TeX dokumentua
  TeX-asiakirja
  TeX skjal
  document TeX
  cáipéis TeX
  documenton TeX
  מסמך TeX
  TeX dokument
  TeX-dokumentum
  Dokumen TeX
  Documento TeX
  TeX ドキュメント
  TeX құжаты
  TeX 문서
  TeX dokumentas
  TeX dokuments
  Dokumen TeX
  TeX-dokument
  TeX-document
  TeX-dokument
  Dokument TeX
  documento TeX
  Documento TeX
  Document TeX
  документ TeX
  Dokument TeX
  Dokument TeX
  Dokument TeX
  ТеХ документ
  TeX-dokument
  TeX belgesi
  документ TeX
  Tài liệu TeX
  TeX 文档
  TeX 文件
  
  
  
  
  
  
  
  
  
  

  
  

  
  

  
  

  

  user@host:/tmp/mime$ echo "Normal text using 'sectional'." > no_tex
  user@host:/tmp/mime$ mimetype no_tex
  no_tex: text/plain
  user@host:/tmp/mime$ echo "\section{A \TeX Section}" > tex_file.tex
  user@host:/tmp/mime$ mimetype tex_file.tex
  tex_file.tex: text/x-tex

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/1485217/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1485217] Re: Magic for text/x-tex broken

2015-10-07 Thread Jan Philipp Wächter
Could you please elaborate on which additional information you need?

Using the commands given above, one can reproduce this bug.
I could also verify that it affects Ubuntu 14.04 LTS, too.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shared-mime-info in
Ubuntu.
https://bugs.launchpad.net/bugs/1485217

Title:
  Magic for text/x-tex broken

Status in shared-mime-info package in Ubuntu:
  Incomplete

Bug description:
  The magic for text/x-tex in Ubuntu 15.04 is broken as it assigns
  text/x-tex to any text file which contains the word "section",
  "chapter" or "documentclass" within the first 100 characters.

  This behavior is fixed if one adds backslashes to the appropriate
  match values in /usr/share/mime/packages/freedesktop.org.xml (.in)
  (see attached patch).

  Edit: You can reproduce this bug as follows.

  Is (output on Ubuntu 15.04):
  user@host:/tmp/mime$ dpkg -s shared-mime-info | grep "Version"
  Version: 1.3-1
  user@host:/tmp/mime$ sed '30568,30638!d' 
/usr/share/mime/packages/freedesktop.org.xml

  TeX document
  مستند TeX
  Dakument TeX
  Документ — TeX
  document TeX
  Dokument TeX
  Dogfen TeX 
  TeX-dokument
  TeX-Dokument
  έγγραφο TeX
  TeX document
  TeX-dokumento
  documento TeX
  TeX dokumentua
  TeX-asiakirja
  TeX skjal
  document TeX
  cáipéis TeX
  documenton TeX
  מסמך TeX
  TeX dokument
  TeX-dokumentum
  Dokumen TeX
  Documento TeX
  TeX ドキュメント
  TeX құжаты
  TeX 문서
  TeX dokumentas
  TeX dokuments
  Dokumen TeX
  TeX-dokument
  TeX-document
  TeX-dokument
  Dokument TeX
  documento TeX
  Documento TeX
  Document TeX
  документ TeX
  Dokument TeX
  Dokument TeX
  Dokument TeX
  ТеХ документ
  TeX-dokument
  TeX belgesi
  документ TeX
  Tài liệu TeX
  TeX 文档
  TeX 文件
  
  
  
  
  
  
  
  
  
  

  
  

  
  

  
  

  

  user@host:/tmp/mime$ echo "Normal text using 'sectional'." > no_tex
  user@host:/tmp/mime$ mimetype no_tex
  no_tex: text/x-tex
  user@host:/tmp/mime$ echo "\section{A \TeX Section}" > tex_file.tex
  user@host:/tmp/mime$ mimetype tex_file.tex
  tex_file.tex: text/x-tex

  
  Should (is, after patching):
  user@host:/tmp/mime$ sed '30568,30638!d' 
/usr/share/mime/packages/freedesktop.org.xml

  TeX document
  مستند TeX
  Dakument TeX
  Документ — TeX
  document TeX
  Dokument TeX
  Dogfen TeX 
  TeX-dokument
  TeX-Dokument
  έγγραφο TeX
  TeX document
  TeX-dokumento
  documento TeX
  TeX dokumentua
  TeX-asiakirja
  TeX skjal
  document TeX
  cáipéis TeX
  documenton TeX
  מסמך TeX
  TeX dokument
  TeX-dokumentum
  Dokumen TeX
  Documento TeX
  TeX ドキュメント
  TeX құжаты
  TeX 문서
  TeX dokumentas
  TeX dokuments
  Dokumen TeX
  TeX-dokument
  TeX-document
  TeX-dokument
  Dokument TeX
  documento TeX
  Documento TeX
  Document TeX
  документ TeX
  Dokument TeX
  Dokument TeX
  Dokument TeX
  ТеХ документ
  TeX-dokument
  TeX belgesi
  документ TeX
  Tài liệu TeX
  TeX 文档
  TeX 文件
  
  
  
  
  
  
  
  
  
  

  
  

  
  

  
  

  

  user@host:/tmp/mime$ echo "Normal text using 'sectional'." > no_tex
  user@host:/tmp/mime$ mimetype no_tex
  no_tex: text/plain
  user@host:/tmp/mime$ echo "\section{A \TeX Section}" > tex_file.tex
  user@host:/tmp/mime$ mimetype tex_file.tex
  tex_file.tex: text/x-tex

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/1485217/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1485217] Re: Magic for text/x-tex broken

2015-09-29 Thread Jan Philipp Wächter
** Description changed:

  The magic for text/x-tex in Ubuntu 15.04 is broken as it assigns
  text/x-tex to any text file which contains the word "section", "chapter"
  or "documentclass" within the first 100 characters.
  
  This behavior is fixed if one adds backslashes to the appropriate match
  values in /usr/share/mime/packages/freedesktop.org.xml (.in) (see
  attached patch).
+ 
+ Edit: You can reproduce this bug as follows.
+ 
+ Is (output on Ubuntu 15.04):
+ user@host:/tmp/mime$ dpkg -s shared-mime-info | grep "Version"
+ Version: 1.3-1
+ user@host:/tmp/mime$ sed '30568,30638!d' 
/usr/share/mime/packages/freedesktop.org.xml
+   
+ TeX document
+ مستند TeX
+ Dakument TeX
+ Документ — TeX
+ document TeX
+ Dokument TeX
+ Dogfen TeX 
+ TeX-dokument
+ TeX-Dokument
+ έγγραφο TeX
+ TeX document
+ TeX-dokumento
+ documento TeX
+ TeX dokumentua
+ TeX-asiakirja
+ TeX skjal
+ document TeX
+ cáipéis TeX
+ documenton TeX
+ מסמך TeX
+ TeX dokument
+ TeX-dokumentum
+ Dokumen TeX
+ Documento TeX
+ TeX ドキュメント
+ TeX құжаты
+ TeX 문서
+ TeX dokumentas
+ TeX dokuments
+ Dokumen TeX
+ TeX-dokument
+ TeX-document
+ TeX-dokument
+ Dokument TeX
+ documento TeX
+ Documento TeX
+ Document TeX
+ документ TeX
+ Dokument TeX
+ Dokument TeX
+ Dokument TeX
+ ТеХ документ
+ TeX-dokument
+ TeX belgesi
+ документ TeX
+ Tài liệu TeX
+ TeX 文档
+ TeX 文件
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+   
+ 
+ 
+   
+ 
+ 
+   
+ 
+ 
+   
+ 
+   
+ user@host:/tmp/mime$ echo "Normal text using 'sectional'." > no_tex
+ user@host:/tmp/mime$ mimetype no_tex
+ no_tex: text/x-tex
+ user@host:/tmp/mime$ echo "\section{A \TeX Section}" > tex_file.tex
+ user@host:/tmp/mime$ mimetype tex_file.tex
+ tex_file.tex: text/x-tex
+ 
+ 
+ Should (is, after patching):
+ user@host:/tmp/mime$ sed '30568,30638!d' 
/usr/share/mime/packages/freedesktop.org.xml
+   
+ TeX document
+ مستند TeX
+ Dakument TeX
+ Документ — TeX
+ document TeX
+ Dokument TeX
+ Dogfen TeX 
+ TeX-dokument
+ TeX-Dokument
+ έγγραφο TeX
+ TeX document
+ TeX-dokumento
+ documento TeX
+ TeX dokumentua
+ TeX-asiakirja
+ TeX skjal
+ document TeX
+ cáipéis TeX
+ documenton TeX
+ מסמך TeX
+ TeX dokument
+ TeX-dokumentum
+ Dokumen TeX
+ Documento TeX
+ TeX ドキュメント
+ TeX құжаты
+ TeX 문서
+ TeX dokumentas
+ TeX dokuments
+ Dokumen TeX
+ TeX-dokument
+ TeX-document
+ TeX-dokument
+ Dokument TeX
+ documento TeX
+ Documento TeX
+ Document TeX
+ документ TeX
+ Dokument TeX
+ Dokument TeX
+ Dokument TeX
+ ТеХ документ
+ TeX-dokument
+ TeX belgesi
+ документ TeX
+ Tài liệu TeX
+ TeX 文档
+ TeX 文件
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+   
+ 
+ 
+   
+ 
+ 
+   
+ 
+ 
+   
+ 
+   
+ user@host:/tmp/mime$ echo "Normal text using 'sectional'." > no_tex
+ user@host:/tmp/mime$ mimetype no_tex
+ no_tex: text/plain
+ user@host:/tmp/mime$ echo "\section{A \TeX Section}" > tex_file.tex
+ user@host:/tmp/mime$ mimetype tex_file.tex
+ tex_file.tex: text/x-tex

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shared-mime-info in
Ubuntu.
https://bugs.launchpad.net/bugs/1485217

Title:
  Magic for text/x-tex broken

Status in shared-mime-info package in Ubuntu:
  New

Bug description:
  The magic for text/x-tex in Ubuntu 15.04 is broken as it assigns
  text/x-tex to any text file which contains the word "section",
  "chapter" or "documentclass" within the first 100 characters.

  This behavior is fixed if one adds backslashes to the appropriate
  match values in /usr/share/mime/packages/freedesktop.org.xml (.in)
  (see attached patch).

  Edit: You can reproduce this bug as follows.

  Is (output on Ubuntu 15.04):
  user@host:/tmp/mime$ dpkg -s shared-mime-info | grep "Version"
  Version: 1.3-1
  user@host:/tmp/mime$ sed '30568,30638!d' 
/usr/share/mime/packages/freedesktop.org.xml

  TeX document
  مستند TeX
  Dakument TeX
  Документ — TeX
  document TeX
  Dokument TeX
  Dogfen TeX 
  TeX-dokument
  TeX-Dokument
  έγγραφο TeX
  TeX document
  TeX-dokumento
  documento TeX
  TeX dokumentua
  TeX-asiakirja
  TeX skjal
  document TeX
  cáipéis TeX
  documenton TeX
  מסמך TeX
  TeX dokument
  TeX-dokumentum
  Dokumen TeX
  Documento TeX
  TeX ドキュメント
  TeX құжаты
  TeX 문서
  TeX dokumentas
  TeX dokuments
  Dokumen TeX
  TeX-dokument
  TeX-document
  TeX-dokument
  Dokument TeX
  documento TeX
  

[Touch-packages] [Bug 1485217] [NEW] Magic for text/x-tex broken

2015-08-15 Thread Jan Philipp Wächter
Public bug reported:

The magic for text/x-tex in Ubuntu 15.04 is broken as it assigns
text/x-tex to any text file which contains the word section, chapter
or documentclass within the first 100 characters.

This behavior is fixed if one adds backslashes to the appropriate match
values in /usr/share/mime/packages/freedesktop.org.xml (.in) (see
attached patch).

** Affects: shared-mime-info (Ubuntu)
 Importance: Undecided
 Status: New

** Patch added: fix_x-tex_magic.patch
   
https://bugs.launchpad.net/bugs/1485217/+attachment/4445155/+files/fix_x-tex_magic.patch

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to shared-mime-info in
Ubuntu.
https://bugs.launchpad.net/bugs/1485217

Title:
  Magic for text/x-tex broken

Status in shared-mime-info package in Ubuntu:
  New

Bug description:
  The magic for text/x-tex in Ubuntu 15.04 is broken as it assigns
  text/x-tex to any text file which contains the word section,
  chapter or documentclass within the first 100 characters.

  This behavior is fixed if one adds backslashes to the appropriate
  match values in /usr/share/mime/packages/freedesktop.org.xml (.in)
  (see attached patch).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/1485217/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp