summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 76d1e8d)
raw | patch | inline | side by side (parent: 76d1e8d)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sat, 15 Jun 2019 21:24:23 +0000 (00:24 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sat, 15 Jun 2019 21:24:23 +0000 (00:24 +0300) |
src/posix/generic/Host/Mod/Lang.cp | patch | blob | history |
index 836888e49fbb91da14fc49d14638785bd4aab361..00a7935d943d72e04a795f1e86d35f537638d2cb 100644 (file)
encoding := enc$
END Init;
- PROCEDURE Fin;
- VAR res: iconv.int;
- BEGIN
- res := iconv.iconv_close(sc2c); sc2c := invalid;
- res := iconv.iconv_close(c2sc); c2sc := invalid
- END Fin;
+ (**
+ Do not close iconv descriptors!
+ It can lead to quiet traps on program termination and bugs like
+ not removed temp files.
+ **)
BEGIN
Init
-CLOSE
- Fin
END HostLang.