From a16b9ba67c3328079749f619efc89d329490ae2b Mon Sep 17 00:00:00 2001 From: wangmengc Date: Fri, 30 Jun 2023 11:55:11 +0800 Subject: [PATCH] fixed help -m err --- bash-5.1/builtins_rust/help/src/lib.rs | 2 +- record.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bash-5.1/builtins_rust/help/src/lib.rs b/bash-5.1/builtins_rust/help/src/lib.rs index e4b9f7b0..a5512bab 100644 --- a/bash-5.1/builtins_rust/help/src/lib.rs +++ b/bash-5.1/builtins_rust/help/src/lib.rs @@ -305,7 +305,7 @@ fn open_helpfile(name :*mut c_char) -> i32{ fn show_longdoc(i : i32){ let builtin1 = unsafe{&(*((shell_builtins as usize + (i*BUILTIN_SIZEOF!()) as usize) as *mut builtin))}; - let mgr = ResourceManager::new("./resources/{locale}/{res_id}".into()); + let mgr = ResourceManager::new("/usr/share/utshell/resources/{locale}/{res_id}".into()); let resources = vec![ "message.ftl".into()]; let mut args = FluentArgs::new(); let c_str: &CStr = unsafe { CStr::from_ptr(builtin1.name) }; diff --git a/record.txt b/record.txt index f064874f..95e7d88f 100644 --- a/record.txt +++ b/record.txt @@ -52,3 +52,4 @@ 74 75 76 +77 -- Gitee