Skip to content

Commit

Permalink
javac UTF-8
Browse files Browse the repository at this point in the history
git-svn-id: http://hustoj.googlecode.com/svn@2243 19ab8b60-bd6c-11dd-baed-41e496641fac
  • Loading branch information
[email protected] committed Apr 21, 2014
1 parent d370817 commit 73620bb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions trunk/core/judge_client/judge_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -820,14 +820,16 @@ int compile(int lang) {
const char * CP_CS[] = { "gmcs","-warn:0", "Main.cs", NULL };
const char * CP_OC[]={"gcc","-o","Main","Main.m","-fconstant-string-class=NSConstantString","-I","/usr/include/GNUstep/","-L","/usr/lib/GNUstep/Libraries/","-lobjc","-lgnustep-base",NULL};
const char * CP_BS[]={"fbc","Main.bas",NULL};
char javac_buf[4][16];
char javac_buf[6][16];
char *CP_J[5];
for(int i=0;i<4;i++) CP_J[i]=javac_buf[i];
sprintf(CP_J[0],"javac");
sprintf(CP_J[1],"-J%s",java_xms);
sprintf(CP_J[2],"-J%s",java_xmx);
sprintf(CP_J[3],"Main.java");
CP_J[4]=(char *)NULL;
sprintf(CP_J[3],"-encoding");
sprintf(CP_J[4],"UTF-8");
sprintf(CP_J[5],"Main.java");
CP_J[6]=(char *)NULL;

pid = fork();
if (pid == 0) {
Expand Down

0 comments on commit 73620bb

Please sign in to comment.