File: msgfmt_no_convert

package info (click to toggle)
polib 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 840 kB
  • sloc: python: 1,683; makefile: 113; sh: 6
file content (16 lines) | stat: -rw-r--r-- 689 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Don't convert pofile to UTF-8 in test
Author: Dave Vasilevsky <dave@vasilevsky.ca>
Forwarded: https://github.com/izimobil/polib/pull/168
Last-Updated: 2025-03-28

--- i/tests/tests.py
+++ w/tests/tests.py
@@ -643,7 +643,7 @@ class TestPoFile(unittest.TestCase):
             os.close(fd)
             po = polib.pofile(reffile, autodetect_encoding=False, encoding=encoding)
             po.save_as_mofile(tmpfile1)
-            subprocess.call([msgfmt, '--no-hash', '-o', tmpfile2, reffile])
+            subprocess.call([msgfmt, '--no-hash', '--no-convert', '-o', tmpfile2, reffile])
             try:
                 f = open(tmpfile1, 'rb')
                 s1 = f.read()