parent
9d569b9597
commit
920141de95
@ -0,0 +1,27 @@
|
|||||||
|
From 5aed220986528c282c92125fc11e61ee67031555 Mon Sep 17 00:00:00 2001
|
||||||
|
From: tigro <tigro@msvsphere-os.ru>
|
||||||
|
Date: Mon, 9 Dec 2024 13:22:40 +0300
|
||||||
|
Subject: [PATCH] Our isolinux.cfg is in cp866 encoding
|
||||||
|
|
||||||
|
---
|
||||||
|
src/bin/mkksiso | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/bin/mkksiso b/src/bin/mkksiso
|
||||||
|
index 42cdbfb..c9cfedd 100755
|
||||||
|
--- a/src/bin/mkksiso
|
||||||
|
+++ b/src/bin/mkksiso
|
||||||
|
@@ -294,8 +294,8 @@ def EditIsolinux(rm_args, add_args, new_volid, old_volid, tmpdir):
|
||||||
|
change_volid = old_volid != new_volid
|
||||||
|
|
||||||
|
# Edit the config file, save the new one as .new
|
||||||
|
- with open(orig_cfg, "r") as in_fp:
|
||||||
|
- with open(orig_cfg + ".new", "w") as out_fp:
|
||||||
|
+ with open(orig_cfg, "r", encoding="cp866") as in_fp:
|
||||||
|
+ with open(orig_cfg + ".new", "w", encoding="cp866") as out_fp:
|
||||||
|
for line in in_fp:
|
||||||
|
if change_volid and old_volid in line:
|
||||||
|
line = line.replace(old_volid, new_volid)
|
||||||
|
--
|
||||||
|
2.47.1
|
||||||
|
|
Loading…
Reference in new issue