Bump to file 5.32 68/152668/2 submit/tizen_base/20171019.012745
authorDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 27 Sep 2017 00:58:01 +0000 (09:58 +0900)
committerMyoungJune Park <mj2004.park@samsung.com>
Thu, 19 Oct 2017 01:20:16 +0000 (10:20 +0900)
[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A

[Problem] version upgrade
[Cause & Measure] version upgrade
[Checking Method] N/A

[Team] Open Source Management and Setting Part
[Developer] dh0128.kwak
[Solution company] Samsung
[Change Type] N/A

Change-Id: I94afd4017d131a749213de7822e17b063229302c
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
packaging/file.spec
python/magic.py
src/compress.c
src/readcdf.c

index 767a833..2c6aaf7 100644 (file)
@@ -5,7 +5,7 @@ BuildRequires:  findutils
 BuildRequires:  libtool
 BuildRequires:  zlib-devel
 Url:            http://www.darwinsys.com/file/
-Version:        5.31
+Version:        5.32
 Release:        0
 Summary:        A Tool to Determine File Types
 License:        BSD-2.0
index b66005b..662569e 100644 (file)
@@ -145,18 +145,7 @@ class Magic(object):
         as a filename or None if an error occurred and the MAGIC_ERROR flag
         is set. A call to errno() will return the numeric error code.
         """
-        if isinstance(filename, bytes):
-            bi = filename
-        else:
-            try:  # keep Python 2 compatibility
-                bi = bytes(filename, 'utf-8')
-            except TypeError:
-                bi = bytes(filename)
-        r = _file(self._magic_t, bi)
-        if isinstance(r, str):
-            return r
-        else:
-            return str(r).encode('utf-8')
+        return Magic.__tostr(_file(self._magic_t, Magic.__tobytes(filename)))
 
     def descriptor(self, fd):
         """
index c6e6f0e..2f789cd 100644 (file)
@@ -35,7 +35,7 @@
 #include "file.h"
 
 #ifndef lint
-FILE_RCSID("@(#)$File: compress.c,v 1.97 2016/05/13 23:02:28 christos Exp $")
+FILE_RCSID("@(#)$File: compress.c,v 1.105 2017/05/25 00:13:03 christos Exp $")
 #endif
 
 #include "magic.h"
index b4bb784..80c8d26 100644 (file)
@@ -26,7 +26,7 @@
 #include "file.h"
 
 #ifndef lint
-FILE_RCSID("@(#)$File: readcdf.c,v 1.56 2016/03/03 22:20:03 christos Exp $")
+FILE_RCSID("@(#)$File: readcdf.c,v 1.65 2017/04/08 20:58:03 christos Exp $")
 #endif
 
 #include <assert.h>