Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
44cff78e
Commit
44cff78e
authored
22 years ago
by
mbarnson%sisna.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed binmode references on Win32 documentation.
See bug 155743.
parent
f578f85e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
104 deletions
+0
-104
installation.sgml
docs/sgml/installation.sgml
+0
-52
installation.xml
docs/xml/installation.xml
+0
-52
No files found.
docs/sgml/installation.sgml
View file @
44cff78e
...
...
@@ -1898,58 +1898,6 @@ system ("C:\\perl\\bin\\perl", "processmail", @ARGLIST);
</
para
>
</
step
>
<
step
>
<
para
>
Add
<
function
>
binmode
()</
function
>
calls
so
attachments
will
work
(
<
ulink
url
=
"http://bugzilla.mozilla.org/show_bug.cgi?id=62000"
>
bug
62000
</
ulink
>
).</
para
>
<
para
>
Because
Microsoft
Windows
based
systems
handle
binary
files
different
than
Unix
based
systems
,
you
need
to
add
the
following
lines
to
<
filename
>
createattachment
.
cgi
</
filename
>
and
<
filename
>
showattachment
.
cgi
</
filename
>
before
the
<
function
>
require
'CGI.pl'
;</
function
>
line
.</
para
>
<
para
>
<
programlisting
>
<
![CDATA[
binmode
(
STDIN
);
binmode
(
STDOUT
);
]]>
</
programlisting
>
</
para
>
<
note
>
<
para
>
According
to
<
ulink
url
=
"http://bugzilla.mozilla.org/show_bug.cgi?id=62000"
>
bug
62000
</
ulink
>
,
the
perl
documentation
says
that
you
should
always
use
<
function
>
binmode
()</
function
>
when
dealing
with
binary
files
,
but
never
when
dealing
with
text
files
.
That
seems
to
suggest
that
rather
than
arbitrarily
putting
<
function
>
binmode
()</
function
>
at
the
beginning
of
the
attachment
files
,
there
should
be
logic
to
determine
if
<
function
>
binmode
()</
function
>
is
needed
or
not
.</
para
>
</
note
>
</
step
>
</
procedure
>
<
tip
>
...
...
This diff is collapsed.
Click to expand it.
docs/xml/installation.xml
View file @
44cff78e
...
...
@@ -1898,58 +1898,6 @@ system ("C:\\perl\\bin\\perl", "processmail", @ARGLIST);
</para>
</step>
<step>
<para>
Add
<function>
binmode()
</function>
calls so attachments will work (
<ulink
url=
"http://bugzilla.mozilla.org/show_bug.cgi?id=62000"
>
bug
62000
</ulink>
).
</para>
<para>
Because Microsoft Windows based systems handle binary files
different than Unix based systems, you need to add the following
lines to
<filename>
createattachment.cgi
</filename>
and
<filename>
showattachment.cgi
</filename>
before the
<function>
require 'CGI.pl';
</function>
line.
</para>
<para>
<programlisting>
<![CDATA[
binmode(STDIN);
binmode(STDOUT);
]]>
</programlisting>
</para>
<note>
<para>
According to
<ulink
url=
"http://bugzilla.mozilla.org/show_bug.cgi?id=62000"
>
bug 62000
</ulink>
, the perl documentation says that you should always use
<function>
binmode()
</function>
when dealing with binary files, but never when dealing with text
files. That seems to suggest that rather than arbitrarily putting
<function>
binmode()
</function>
at the beginning of the attachment files, there should be logic
to determine if
<function>
binmode()
</function>
is needed or not.
</para>
</note>
</step>
</procedure>
<tip>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment