#553 Title Bar Glitch when Displaying File Name

Win32
open
nobody
5
2012-11-14
2012-11-14
Ikyo
No

When I load a game which contains two byte stored character (sorry I don't know its percisely English name) in the file name, by drag it into the emulator, the name in title bar will be glitched.

But it's OK if you load the ROM in normal way through menu File -> Open ROM.

This could affect almost everything based on file name when game playing because sometimes it was converted to invalid characters.

It's hard to reproduce or describe the glitch because the language difference, so I'm not sure this bug occures on your computer. But it appears frequently on mine. I'll try to show the explaining with pictures below.

1.This is the general, I loaded the game by menu, its name displayed as "F1竞赛场" which means "F1 Circus" in English. Everything is fine.

General Occation

2.This is the occation I drag and drop the game into FCEUX, its name glitched as "F1绔炶禌鍦", that's a junk phrase meaningless. In this scene, many bugs occurs.

Glitched Filename

In almost every popped out file location confirming dialog, it refuses to directly continue, because the file name has invalid characters.

Dialog

and FCEUX could not write the WRAM data to .sav file.

WRAM Save Error

I was ever happy that FCUEX supports wide chars, please check if the name converting program has bugs, thank you very much. And I won't blame if you don't understand the bug due to not everyone knows my language...

Discussion

  • Lukas Sabota

    Lukas Sabota - 2012-11-14

    Hello,

    Are you experiencing this behavior on Windows or another Operating System? Thanks in advance!

     
    • Ikyo

      Ikyo - 2012-11-14

      It occurs on Windows. Sorry for that I forgot to change the milestone. My Internet is so bad here so I'm not sure the image is sucessfully uploaded.

       
  • Ikyo

    Ikyo - 2012-11-14
    • milestone: SDL --> Win32
     
  • Ikyo

    Ikyo - 2012-11-14
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -8,7 +8,7 @@
    
     1.This is the general, I loaded the game by menu, its name displayed as "F1竞赛场" which means "F1 Circus" in English. Everything is fine.
    
    -![General Occation](http://i495.photobucket.com/albums/rr311/ikyokyo/2012-11-14215452.png)
    +![General Occation](http://i495.photobucket.com/albums/rr311/ikyokyo/2012-11-14215452-1.png)
    
     2.This is the occation I drag and drop the game into FCEUX, its name glitched as "F1绔炶禌鍦", that's a junk phrase meaningless. In this scene, many bugs occurs.
    
     
  • Ikyo

    Ikyo - 2012-11-14

    Furthermore, the problem is a little clearer in code converting, $E7AB9E $E8B59B $E59CBA was correctly "竞赛场" in UTF8, but $E7AB $9EE8 $B59B $E59C $BA is glitched as "绔炶禌鍦
    " in ANSI page of my computer, the last $BA becomes an invalid character, so it was parsed to a ?(question mark), which makes some operation failed because it's not allowed. And the title bar mistakenly decided to show the UTF-8 phrase in ANSI way.

     
  • Ikyo

    Ikyo - 2012-11-14

    As "竞赛场" in Unicode($7ADE $8D5B $573A) is matched $E7AB9E $E8B59B $E59CBA in UTF-8, the bug is obviously a codepage misconvertion. Maybe it originally should to be an ANSI page refer the localization of computer.

    Unicode

    In mine, the correct code is $BEBA $C8FC $B3A1 according to my ANSI page.

    936_GBK

     
  • zeromus

    zeromus - 2012-11-14

    we can try to fix some of this stuff. But I've got to be honest with you, it's going to be best for you if you just assume that fceux doesn't support filenames with non-ansi characters. There are so many hundreds of issues. Even things that you think work, don't work for other people, because of differences in which operating system language you're using. Maybe we can fix it with lots of tiny fixes, but you're going to keep running into bugs. Do you want to keep reporting bugs and testing the fixes and looking for other things that are broken?

     
  • zeromus

    zeromus - 2012-11-14

    these changes can't be made right now. they are too risky. please wait until after the next release.

     
    • Ikyo

      Ikyo - 2012-11-15

      Thanks for your patience, I'll locally try to find the reason of this bug sometimes, despite it's not a serious bug. And I'll temporarily preventing from loading a file that contains non-ascii characters in name by dragging into the emulator before it was solved.

      Due to there are few opportunity to test the program on many different languages of OS, if I find a solution, I'll test in on several languages of OS as more as I can.

       

Log in to post a comment.