aboutsummaryrefslogtreecommitdiff
path: root/win32/winansi.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/winansi.c')
-rw-r--r--win32/winansi.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/win32/winansi.c b/win32/winansi.c
index 67fcc17d3..4beef3eb8 100644
--- a/win32/winansi.c
+++ b/win32/winansi.c
@@ -732,15 +732,6 @@ static BOOL charToConBuffA(LPSTR s, DWORD len)
732 buf = xmalloc(len*sizeof(WCHAR)); 732 buf = xmalloc(len*sizeof(WCHAR));
733 MultiByteToWideChar(CP_ACP, 0, s, len, buf, len); 733 MultiByteToWideChar(CP_ACP, 0, s, len, buf, len);
734 WideCharToMultiByte(conocp, 0, buf, len, s, len, NULL, NULL); 734 WideCharToMultiByte(conocp, 0, buf, len, s, len, NULL, NULL);
735#if ENABLE_FEATURE_EURO
736 if (conocp == 858) {
737 for (int i = 0; i < len; ++i) {
738 if (buf[i] == 0x20ac) {
739 s[i] = 0xd5;
740 }
741 }
742 }
743#endif
744 free(buf); 735 free(buf);
745 return TRUE; 736 return TRUE;
746} 737}
@@ -771,15 +762,6 @@ BOOL conToCharBuffA(LPSTR s, DWORD len)
771 buf = xmalloc(len*sizeof(WCHAR)); 762 buf = xmalloc(len*sizeof(WCHAR));
772 MultiByteToWideChar(conicp, 0, s, len, buf, len); 763 MultiByteToWideChar(conicp, 0, s, len, buf, len);
773 WideCharToMultiByte(CP_ACP, 0, buf, len, s, len, NULL, NULL); 764 WideCharToMultiByte(CP_ACP, 0, buf, len, s, len, NULL, NULL);
774#if ENABLE_FEATURE_EURO
775 if (conicp == 858) {
776 for (int i = 0; i < len; ++i) {
777 if (buf[i] == 0x0131) {
778 s[i] = 0x80;
779 }
780 }
781 }
782#endif
783 free(buf); 765 free(buf);
784 return TRUE; 766 return TRUE;
785} 767}