~ubuntu-branches/ubuntu/raring/vice/raring

« back to all changes in this revision

Viewing changes to src/arch/unix/macosx/cocoa/uimon.m

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2009-03-31 00:37:15 UTC
  • mfrom: (1.2.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: james.westby@ubuntu.com-20090331003715-mzclchtl0dp7fcl0
Tags: upstream-2.1.dfsg
ImportĀ upstreamĀ versionĀ 2.1.dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
 
58
58
int uimon_out(const char *buffer)
59
59
{
60
 
    [[theVICEMachine app] printMonitorMessage:[NSString stringWithCString:buffer]];
 
60
    [[theVICEMachine app] printMonitorMessage:[NSString stringWithCString:buffer encoding:NSUTF8StringEncoding]];
61
61
    return 0;
62
62
}
63
63
 
64
64
char *uimon_get_in(char **ppchCommandLine, const char *prompt)
65
65
{
66
 
    NSString *line = [[theVICEMachine app] readMonitorLine:[NSString stringWithCString:prompt]];
 
66
    NSString *line = [[theVICEMachine app] readMonitorLine:[NSString stringWithCString:prompt encoding:NSUTF8StringEncoding]];
67
67
    char *ret;
68
68
    if(line==nil)
69
69
        ret = lib_stralloc("exit");
70
70
    else
71
 
        ret = lib_stralloc([line cString]);
 
71
        ret = lib_stralloc([line cStringUsingEncoding:NSUTF8StringEncoding]);
72
72
    return ret;
73
73
}
74
74