Commit 412977348 for imagemagick.org
commit 41297734868ea79f3599b1fb187806030414479e
Author: Cristy <urban-warrior@imagemagick.org>
Date: Sat Sep 12 09:55:04 2026 -0400
eliminate compiler warning
diff --git a/MagickWand/script-token.c b/MagickWand/script-token.c
index 0fb3ff4a9..ae7875aa5 100644
--- a/MagickWand/script-token.c
+++ b/MagickWand/script-token.c
@@ -227,7 +227,7 @@ WandExport ScriptTokenInfo *AcquireScriptTokenInfo(const char *filename)
token_info->opened=MagickFalse;
}
else {
- int fd = open(filename,O_RDONLY | O_CLOEXEC | O_NOFOLLOW);
+ int fd = open_utf8(filename,O_RDONLY | O_CLOEXEC | O_NOFOLLOW);
if (fd != -1)
token_info->stream=fdopen(fd,"r");
if (token_info->stream != (FILE *) NULL)