Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support loading from directories containing NON-ASCII characters. #11

Open
TricksterGuy opened this issue Mar 14, 2014 · 2 comments
Open

Comments

@TricksterGuy
Copy link
Owner

No description provided.

@raghavkaul
Copy link

I'm starting from really basic basics: What are the relevant files? My guess is that some of the liblc3 functions like ExpressionEvaluator and lc3_expressions might be relevant, but I've been trying to navigate through the /complx/ directory and can't figure out where the parser is or where it's invoked by the app

@TricksterGuy
Copy link
Owner Author

Expounding upon this

Examples of places where a file is loaded

https://github.com/TricksterGuy/complx/blob/master/complx/ComplxFrame.cpp#L297
https://github.com/TricksterGuy/complx/blob/master/complx/ComplxFrame.cpp#L1232
https://github.com/TricksterGuy/complx/blob/master/lc3test/main.cpp#L81

The two main types of files that are loaded are .asm files and .xml files for testing don't worry about save/load machine as I will remove that functionality soon.

The fix is to generate a UTF8 string and then pass that to ifstream

You may want to look at wxString's API (http://docs.wxwidgets.org/3.0/classwx_string.html)

http://stackoverflow.com/questions/4676327/how-to-open-a-file-with-wchar-t-containing-non-ascii-string-in-linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants