From a58e07b3365895fc941f230e5be160e2dcc33559 Mon Sep 17 00:00:00 2001 From: leiserfg Date: Mon, 6 Jul 2026 17:07:04 +0200 Subject: [PATCH] Explicitly convert cstring to string (#25961) I was updating nim to 2.2.10 in nixpkgs https://github.com/NixOS/nixpkgs/pull/538469 and without this change the fail build, because add(string, cstring) is not defined. I think it's caused by a change of position of the includes in system, but with this it works fine. Co-authored-by: Andreas Rumpf --- lib/system/excpt.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim index 0218190607..40ed2e339c 100644 --- a/lib/system/excpt.nim +++ b/lib/system/excpt.nim @@ -207,10 +207,10 @@ when defined(nativeStacktrace) and nativeStackTraceSupported: if enabled: if dlresult != 0: var oldLen = s.len - add(s, tempDlInfo.dli_fname) + add(s, cstrToStrBuiltin(tempDlInfo.dli_fname)) if tempDlInfo.dli_sname != nil: for k in 1..max(1, 25-(s.len-oldLen)): add(s, ' ') - add(s, tempDlInfo.dli_sname) + add(s, cstrToStrBuiltin(tempDlInfo.dli_sname)) else: add(s, '?') add(s, "\n")