Project

General

Profile

Actions

Emulator Issues #6721

closed

Problems with put user directory in the path contains named folder with double byte/diacritical mark character.

Added by graymaster8 over 10 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
UI
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

I'm Japanese, sorry for my baaad English.

What went wrong?

Put Dolphin user directory in the path contains the folder double byte/diacritical mark named, some problems appeared.
e.g.
C:\Users\あいうえお\My Documents\Dolphin Emulator.
C:\Users\一二三四五六七八九十\My Documents\Dolphin Emulator.
C:\Users\François\My Documents\Dolphin Emulator.

  1. Can't create Wii saves.
    Run Wii games have no save data yet, game show a message like "Could not write to/read from wii system memory."
    Some games shows "Save successful." and created wii/title/<GAMEID>/ folder but doesn't created any files in<GAMEID>folder.

  2. Crash when using "Open Wii save folder" or "Open containg folder" feature.
    When trying to these features, you get this message then Dolphin crash.
    http://imageshack.us/photo/my-images/546/e8ur.png/

This problem already appeared at Dolphin 3.5-547 but recently got many reports in my country forum.
I think Dolphin 4.0 has global user directory system but many people using user account name with "native" language.
So this problem became obvious all at once.

Which versions of Dolphin did you test on?
Dolphin 4.0 - Broken
Dolphin 3.5-547 - Broken
Dolphin 3.5-518 - Works
Dolphin 3.5 - Works

What are your PC specifications (example: Operating System, CPU and GPU)?
Win7 Pro 64bit

64 or 32 bit Dolphin?
Both

Actions #3

Updated by rachelbryk over 10 years ago

  • Status changed from New to Accepted
  • Category set to ui

Running dolphin from within a folder named あああああ and setting it to use local config via registry works, but setting it to the same path via command line, or registry didn't work. JP text still works in all other instances, as far as i can tell..

Actions #4

Updated by rachelbryk over 10 years ago

Hm, C:/テスト/test/ works, but C:/テスト/ does not. If the last folder contains non-ascii it seems to just use C:/ instead, but works otherwise. I haven't tested using a user account with such a name. Based on what i'm seeing it should work, but i guess maybe not?

Actions #5

Updated by rachelbryk over 10 years ago

Open wii save folder seems like a wxw bug.

This works around it, but no idea if it doesn't work on non-windows. The problem happens in wxURI::Unescape(), which assumes ascii.

diff --git a/Source/Core/DolphinWX/Src/WxUtils.cpp b/Source/Core/DolphinWX/Src/WxUtils.cpp
index ba245c0..5185646 100644
--- a/Source/Core/DolphinWX/Src/WxUtils.cpp
+++ b/Source/Core/DolphinWX/Src/WxUtils.cpp
@@ -31,7 +31,7 @@ void Explore(const char *path)
// Default to file
if (! wxPath.Contains(wxT("://")))
{

  •   wxPath = wxT("file://") + wxPath;
    
    }

#ifdef WXGTK

Still not sure what is wrong with saving.

Actions #6

Updated by rachelbryk over 10 years ago

r99c89ae fixes the first problem. Waiting for someone to comment on the above fix for the second problem.

Actions #7

Updated by rachelbryk over 10 years ago

  • Status changed from Accepted to Fixed

This issue was closed by revision cc05f66ba1a0.

Actions

Also available in: Atom PDF