File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -332,19 +332,21 @@ fn get_locales_dir(p: &str) -> Result<PathBuf, LocalizationError> {
332
332
let exe_path = env:: current_exe ( ) . map_err ( |e| {
333
333
LocalizationError :: PathResolution ( format ! ( "Failed to get executable path: {}" , e) )
334
334
} ) ?;
335
-
335
+ println ! ( "Executable path: {}" , exe_path . display ( ) ) ;
336
336
let exe_dir = exe_path. parent ( ) . ok_or_else ( || {
337
337
LocalizationError :: PathResolution ( "Failed to get executable directory" . to_string ( ) )
338
338
} ) ?;
339
-
339
+ println ! ( "Executable directory: {}" , exe_dir . display ( ) ) ;
340
340
// Try the coreutils-style path first
341
341
let coreutils_path = exe_dir. join ( "locales" ) . join ( p) ;
342
+ println ! ( "Looking for locales in: {}" , coreutils_path. display( ) ) ;
342
343
if coreutils_path. exists ( ) {
343
344
return Ok ( coreutils_path) ;
344
345
}
345
346
346
347
// Fallback to just the parameter as a relative path
347
348
let fallback_path = exe_dir. join ( p) ;
349
+ println ! ( "Fallback locales path: {}" , fallback_path. display( ) ) ;
348
350
if fallback_path. exists ( ) {
349
351
return Ok ( fallback_path) ;
350
352
}
You can’t perform that action at this time.
0 commit comments