Skip to content

Commit

Permalink
remove unused conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
argrath committed Nov 3, 2024
1 parent df7a8ea commit aeed60e
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions japanese/jlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ jbuffer(
c1 = buf[1];
c2 = c;

if(IC == output_kcode)
#ifdef POSIX_ICONV
if(IC == output_kcode)
{
f2buf[0] = c1;
f2buf[1] = c2;
Expand All @@ -397,33 +397,7 @@ jbuffer(
}
}
#else /*WIN32*/
;
else if(IC == EUC){
switch(output_kcode){
case SJIS:
uc[0] = c1;
uc[1] = c2;
p = e2sj(uc);
c1 = p[0];
c2 = p[1];
break;
default:
impossible("Unknown kcode!");
break;
}
}
else if(IC == SJIS){
uc[0] = c1;
uc[1] = c2;
p = sj2e(uc);
switch(output_kcode){
case EUC:
break;
default:
impossible("Unknown kcode!");
break;
}
}
/* SJIS to SJIS only */
f2buf[0] = c1;
f2buf[1] = c2;
f2buf[2] = '\0';
Expand Down

0 comments on commit aeed60e

Please sign in to comment.