Skip to content

Commit 9a7f7eb

Browse files
committed
Reapply "add debug info"
This reverts commit e87f224.
1 parent ff8ce86 commit 9a7f7eb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/uucore/src/lib/mods/locale.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,19 +332,21 @@ fn get_locales_dir(p: &str) -> Result<PathBuf, LocalizationError> {
332332
let exe_path = env::current_exe().map_err(|e| {
333333
LocalizationError::PathResolution(format!("Failed to get executable path: {}", e))
334334
})?;
335-
335+
println!("Executable path: {}", exe_path.display());
336336
let exe_dir = exe_path.parent().ok_or_else(|| {
337337
LocalizationError::PathResolution("Failed to get executable directory".to_string())
338338
})?;
339-
339+
println!("Executable directory: {}", exe_dir.display());
340340
// Try the coreutils-style path first
341341
let coreutils_path = exe_dir.join("locales").join(p);
342+
println!("Looking for locales in: {}", coreutils_path.display());
342343
if coreutils_path.exists() {
343344
return Ok(coreutils_path);
344345
}
345346

346347
// Fallback to just the parameter as a relative path
347348
let fallback_path = exe_dir.join(p);
349+
println!("Fallback locales path: {}", fallback_path.display());
348350
if fallback_path.exists() {
349351
return Ok(fallback_path);
350352
}

0 commit comments

Comments
 (0)