summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.win328
-rw-r--r--handy.h2
-rw-r--r--util.c3
3 files changed, 12 insertions, 1 deletions
diff --git a/README.win32 b/README.win32
index ddc1f847a6..113c0f5c70 100644
--- a/README.win32
+++ b/README.win32
@@ -214,6 +214,14 @@ default path. You will need to copy the DLLs reported by the messages
from where Borland chose to install it, into the Windows system directory
(usually somewhere like C:\WINNT\SYSTEM32) and rerun the test.
+If you're using Borland compiler versions 5.2 and below, you're risking
+to face a problem with finding incorrect header files. Don't be surprised
+when during compiling perl extension "Tk" you will fail because both perl
+and tk contain a header file with same name - "patchlevel.h". The latest
+Borland compilers are free of this misbehaviour, and they even invented
+option -VI- for backward (bugward) compatibility as "Use old Borland
+search algorithm to locate header files".
+
Please report any other failures as described under L<BUGS AND CAVEATS>.
=head2 Installation
diff --git a/handy.h b/handy.h
index 9ac2e296f4..1f1cc531bb 100644
--- a/handy.h
+++ b/handy.h
@@ -483,7 +483,7 @@ Converts the specified character to lowercase.
#define isBLANK_LC_utf8(c) isBLANK(c) /* could be wrong */
#ifdef EBCDIC
-# define toCTRL(c) ebcdic_control(c)
+# define toCTRL(c) Perl_ebcdic_control(c)
#else
/* This conversion works both ways, strangely enough. */
# define toCTRL(c) (toUPPER(c) ^ 64)
diff --git a/util.c b/util.c
index ce64a3a006..409307f4f3 100644
--- a/util.c
+++ b/util.c
@@ -4004,6 +4004,9 @@ Perl_report_evil_fh(pTHX_ GV *gv, IO *io, I32 op)
}
#ifdef EBCDIC
+/* in ASCII order, not that it matters */
+static const char controllablechars[] = "?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_";
+
int
Perl_ebcdic_control(pTHX_ int ch)
{