ebcdic.xml.ko revision 316f02e3836836c82e19019ff23f90a7ebc65289
<?xml version="1.0" encoding="EUC-KR" ?>
<!DOCTYPE manualpage SYSTEM "/style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="/style/manual.ko.xsl"?>
<!-- English Revision: 151408:804977 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manualpage metafile="ebcdic.xml.meta">
<parentdocument href="./">Platform Specific Notes</parentdocument>
<title>����ġ EBCDIC ����</title>
<summary>
<note type="warning">�� ������ ����ġ ������ 2.0 ����
����� ������ ������� �ʴ�. ������ ��ȿ�� ������ ������,
�����ؼ� ����ϱ� �ٶ���.
</note>
</summary>
<section id="overview">
<title>����ġ EBCDIC ���� ����</title>
<p>����ġ �������� 1.3 ���� ó������ EBCDIC ����������
�⺻ ������������ ����ϴ� (��-ASCII) �����÷��� ��ǻ�ͷ�
���õǾ��.</p>
<p>(<a
href="http://www.siemens.de/servers/bs2osd/osdbc_us.htm">BS2000/OSD
�ü��</a>�� ����ϴ� SIEMENS �迭 �����÷����� ���Ѵ�.
�� �����÷��� �ü������ ���� SVR4�迭�� POSIX �����ý�����
�ִ�).</p>
<p>������ ó���� ������ ���� ���� ���۵Ǿ��</p>
<ul>
<li>�� �÷������ε� <a href="http://dev.apache.org/">����ġ
������</a>�� ������ �� �ִٴ� ���ɼ��� ���̱����ؼ�</li>
<li>(��� �� ���õ�) ������ <a
href="http://www.w3.org/Daemon/">CERN-3.0</a> ������ ��ü��
"�����ϰ� ������" �İ��ڸ� ã������</li>
<li>�� �÷��� ����ġ�� prefork ���μ��� ����� CERN��
accept-fork-serve ��� ���� 5�� �̻� ������ ������
���̱����ؼ�.</li>
</ul>
<p>�� ������ ���ý� ���� ����� ������ ������ �����Ѵ�.</p>
</section>
<section id="design">
<title>���� ��ǥ</title>
<p>EBCDIC ������ ������ �ϳ��� ���ο� ������ ��ȯ�� �����ϰ�
���� ��ȯ�� �� �ֵ��� ������ (EBCDIC) CERN ������ ȣȯ����
�����ϴ� ���̴�. �׷��� HTML ������ (���� CERN ������ �ν��ϴ�
������ �����) ASCII�� (POSIX �����ý����� �⺻ ���� ���.
�׷��Ƿ� <code>grep</code>�̳� <code>sed</code> ���� POSIX
������ ����� �� �ִ� �������� �����) EBCDIC �� ��� �������
������ �� �־�� �Ѵ�. ���� �ذ�å�� ����ġ ������ �߰�����
������ ����ä�� ������ ����� �ľ��ϴ� "���� MIME ���"�̴�
(�Ʒ� ���). ���� ����� ��ȯ�ؾ��� ��� ������
"ebcdic-handler"�� �����ϴ� ������� ������ �ذ��� ���̴�.</p>
</section>
<section id="technical">
<title>����� �ذ�å</title>
<p>����ġ�� BUFF �ڷ���� �޽�带 ����Ͽ� ��� �������
�ϹǷ� ���� ���� ����� BUFF ó�� �Լ��� ��ȯ����� �߰��ϴ�
���̴�. �������� ��ȯ�� �� �־�� �ϱ⶧���� BUFF ��ü��
��ȯ�ؾ� �ϴ��� �˷��ִ� BUFF ǥ�ø� �߰��ߴ�. �� ǥ�ô�
HTTP ���������� ���� �ܰ迡�� ����� �� �ִ�:</p>
<ul>
<li>��û�� �ޱ� �� <strong>��ȯ</strong> (��û�� ��û�����
�׻� ASCII ����̱� ������)</li>
<li>��û ������ �޾����� content type�� ���
<strong>��ȯ/��ȯ����</strong> (��û ������ ASCII ���ڳ�
���̳ʸ� ������ ��� ��ȯ�ؾ� �ϱ⶧����)</li>
<li>��������� ������ �� <strong>��ȯ</strong> (���������
�׻� ASCII ����̱⶧����)</li>
<li>���� ������ ������ content type�� ���
<strong>��ȯ/��ȯ����</strong> (���� ������ ���� �����̰ų�
���̳ʸ� �����̱⶧����)</li>
</ul>
</section>
<section id="porting">
<title>���ÿ� ���ؼ�</title>
<ol>
<li>
<p>�ҽ��� ��ȭ�� �ΰ��� <code>#ifdef</code>�� ������
�� �ִ�:</p>
<dl>
<dt><code><strong>#ifdef
CHARSET_EBCDIC</strong></code></dt>
<dd>
<p>��� EBCDIC��� ��ǻ�Ϳ� �ʿ��� �ڵ�. ���ں�ȯ,
�� �������հ��� ���ӵ� ���ڰ� ����, � HTTP ��������
�κ��� ��ȯ�Ǿ� �ϴ����� �˷��ִ� ǥ�� <em>��.</em></p>
</dd>
<dt><code><strong>#ifdef _OSD_POSIX</strong></code></dt>
<dd>
<p>SIEMENS BS2000/OSD �����÷��� �÷��� �ʿ���
�ڵ�. BS2000/OSD �÷��� �ʿ��� ������� ���̿�
���� ���� ������ �ٷ��.</p>
</dd>
</dl>
</li>
<li>
<p>���� ���ؿ��� ASCII�� EBCDIC�� ��ȭ�� (BS2000 POSIX����
�� ����� �����ϴ� ���� �ɼ��� �ִ�) HTTP �������� ���ؿ���
��۵Ǵ� �ڷῡ �������ݰ�� ���ڿ��� �������ݰ� ������
�Ϲ������� �����ֱ⶧���� �ǵ������� �������
<em>�ʾҴ�</em>. HTTP �������� ���ڿ��� (<code>GET</code>
��û, Header: ��, ��Ÿ ���� <em>��.</em>) �׻� ASCII
����̰�, ������� �κ��� (<em>��</em>, GIF �׸�, CGI
��� <em>��.</em>) ������ �׻� "��ȯ�����ʰ� �׳�" ������
�Ѵ�. ���� �ڵ�� "�������� ���ڿ�"�� "�Ϲ� �ڷ�"��,
���ڿ����� <code>bgets()</code>�� <code>rvputs()</code>,
���̳ʸ� �ڷῡ�� <code>bgets()</code>��
<code>rvputs()</code> �Լ��� ����Ͽ� �����Ѵ�. �׷��Ƿ�
������ ��� ���� ��ȯ�ϴ� ���� �������� �ʴ�.</p>
<p>(���� ���������� ��� EBCDIC ������ �׻� ASCII��
�����ϵ��� �غ��ؾ� �Ѵ�)</p>
</li>
<li>
<p>�׷��� ���ÿ��� (�����Ϸ��� EBCDIC ���ڿ��� ��ȯ��)
���� ���� ���ڿ��� ������ ���� ������ �⺻ ��������
���ؿ��� ��ȯ�ϴ� ����� �ִ�. ���� �ڵ忡 ����� ASCII
escape���� <code>\012</code>�� <code>\015</code>�� ���ܴ�:
�̵��� �̹� ASCII <code>\n</code>�� <code>\r</code>��
���̳ʸ� ���̱⶧���� ASCII�� �ι� ��ȯ�ϸ� �ȵȴ�.
�� ���ܴ� ������ ���� ���ڿ����� ���ȴ�; <em>�ܺ�</em>
EBCDIC ������ ASCII �ٹٲ޹��ڸ� �����ϸ� �ȵȴ�.</p>
</li>
<li>
<p>BUFF ���Լ��� ����ϴ� ����� ���캻 �� ���� ���
puts/write/get/gets�� ��ġ�ԵǴ� "ebcdic/ascii ��ȯ
����"�� �߰��ϰ�, �������� ��ȯ������ ������ �� �ִ�
��ȯ ǥ�ø� �߰��ߴ�. ������ ��(�����̳� CGI ���)����
���(��û�� Ŭ���̾�Ʈ)���� �̵��Ҷ� �׻� �� ������
�ι� ������: <code>���� -&gt; ����ġ</code>, <code>����ġ
-&gt; Ŭ���̾�Ʈ</code>.</p>
<p>������ ���� EBCDIC ������� �� CGI ��ũ��Ʈ �����
������� �а�, ������ ��ũ��Ʈ ����� ASCII���� �˾Ƴ�
�� �ִ� (WWW �湮�ڼ��� ���� ���α׷��� ���� ���: ����
������ GIF �׸��̴�). �⺻ EBCDIC ������� ��� �����
ó���Ѵ�; �׷� ���� ������ ������ type�� ��� ������
���� ������ �̹� ASCII���� Ȥ�� EBCDIC���� ��ȯ�� �ؾ�
�ϴ��� �����Ѵ�.</p>
</li>
<li>
<p>(MIME type�� text/plain, text/html <em>��</em>) ������
�Ϲ� ������ ������ �Ϲ������� ASCII�� ��ȯ�ϰų�, (����ڿ���
��� �����ϱ����� �̸� ������ ASCII ������� �����Ͽ��ų�
NFS�� ����Ʈ�� ���丮�� ������ �ִ� ���) ��ȯ����
������ �� �ִ�.</p>
<p><strong>��:</strong></p>
<p>�̸��� <code>.ahtml</code>�� ������ ������ �Ϲ�����
��ȯ���� ASCII <code>text/html</code> ������ (�׸���
<code>.ascii</code> Ȯ���ڴ� ASCII
<code>text/plain</code>����) �����Ϸ��� ���� ���þ
����Ѵ�:</p>
<example>
AddType text/x-ascii-html .ahtml <br />
AddType text/x-ascii-plain .ascii
</example>
<p>��, <code>text/foo</code> ���� MIME type��
<code>AddType</code> "<code>text/x-ascii-foo</code>"
�����Ͽ� "�Ϲ� ASCII"�� ������ �� �ִ�.</p>
</li>
<li>
<p>������ �Ϲ� ���ڰ� �ƴ� ������ ��ȯ���� �׻� "���̳ʸ�"��
�����Ѵ�. <em>���� ���</em>, GIF/ZIP/AU ������Ŀ�
���� ������ �����̴�. ���� ����ڴ� "<code>rcp -b</code>"
���̳ʸ� �ɼ��� ����Ͽ� ������ �����÷��� ȣ��Ʈ��
�����߾�� �Ѵ�.</p>
</li>
<li>
<p>�����Ľ� ������ �׻� ��ǻ�Ͱ� ����ϴ� �⺻ �������
(<em>��</em>, EBCDIC) ����Ǿ�ٰ� �����ϰ�, ó���Ŀ�
��ȯ�Ѵ�.</p>
</li>
<li>
<p>CGI ����� ��� CGI ��ũ��Ʈ�� ��ȯ�� �ʿ����� �����Ѵ�:
������ Content-Type�� �����Ͽ�, ���������� ��ȯ�ϰ�,
GIF ����� ��ȯ���� ���� �� �ִ�. �츮�� ������ wwwcount
���α׷��� ������ ����.</p>
</li>
</ol>
</section>
<section id="document">
<title>���� ���忡 ���ؼ�</title>
<section id="binary">
<title>���̳ʸ� ����</title>
<p>������ <code>Content-Type:</code>�� <code>text/</code>��
�����ϴ� �ʴ� ������ <em>���̳ʸ� ����</em>�� �����Ͽ�
� ��ȯ�� ���� �ʴ´�. ���̳ʸ� ���Ͽ��� GIF �׸�, gzip����
������ ���� ���� �ִ�.</p>
<p>�����÷��� ȣ��Ʈ�� ���н� Ȥ�� �������� PC���� ���̳ʸ�
������ ����� ���� ftp "binary" (<code>TYPE I</code>) ��ɾ
�����÷��� ȣ��Ʈ���� (���н� <code>rcp</code>��
<code>-b</code> �ɼ��� �������� �ʴ´�) <code>rcp -b</code>
��ɾ �ݵ�� ����϶�.</p>
</section>
<section id="text">
<title>���� ����</title>
<p>�⺻������ ������ ���������� (<em>��</em>,
<code>Content-Type:</code>�� <code>text/</code>�� �����ϴ�
��� ����) ȣ��Ʈ�� �⺻ ���������� EBCDIC���� ����Ǿ�ٰ�
�����Ѵ�.</p>
</section>
<section id="ssi">
<title>Server Side Include ����</title>
<p>SSI ������ ���� EBCDIC ������θ� �����ؾ� �Ѵ�. ó���ϱ�
�� ASCII�� ��ȯ���� �ʴ´�.</p>
</section>
</section>
<section id="modules">
<title>����ġ ����� ����</title>
<table border="1">
<tr>
<th>���</th>
<th>����</th>
<th>���</th>
</tr>
<tr>
<td><module>core</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_access</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_actions</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_alias</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_asis</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_auth</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_auth_anon</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_auth_dbm</module></td>
<td class="centered">?</td>
<td>��ü <code>libdb.a</code>�� ����Ͽ�</td>
</tr>
<tr>
<td><module>mod_autoindex</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_cern_meta</module></td>
<td class="centered">?</td>
<td></td>
</tr>
<tr>
<td><module>mod_cgi</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><code>mod_digest</code></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_dir</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_so</module></td>
<td class="centered">-</td>
<td>�������̺귯���� ����</td>
</tr>
<tr>
<td><module>mod_env</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_example</module></td>
<td class="centered">-</td>
<td>(���� �ܰ�)</td>
</tr>
<tr>
<td><module>mod_expires</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_headers</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_imagemap</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_include</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_info</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><code>mod_log_agent</code></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><code>mod_log_config</code></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_log_referer</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_mime</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_mime_magic</module></td>
<td class="centered">?</td>
<td>���� ���þȵ�</td>
</tr>
<tr>
<td><module>mod_negotiation</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_proxy</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_rewrite</module></td>
<td class="centered">+</td>
<td>�׽�Ʈ�ȵ�</td>
</tr>
<tr>
<td><module>mod_setenvif</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_speling</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_status</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_unique_id</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_userdir</module></td>
<td class="centered">+</td>
<td></td>
</tr>
<tr>
<td><module>mod_usertrack</module></td>
<td class="centered">?</td>
<td>�׽�Ʈ�ȵ�</td>
</tr>
</table>
</section>
<section id="third-party">
<title>�����ڰ� ���� ����� ����</title>
<table border="1">
<tr>
<th>���</th>
<th>����</th>
<th>���</th>
</tr>
<tr>
<td><code><a href="http://java.apache.org/">mod_jserv</a>
</code></td>
<td class="centered">-</td>
<td>JAVA�� �������̴�.</td>
</tr>
<tr>
<td><code><a href="http://www.php.net/">mod_php3</a></code></td>
<td class="centered">+</td>
<td><code>mod_php3</code>�� LDAP, GD, FreeType ���̺귯����
�Բ� �� �����Ѵ�.</td>
</tr>
<tr>
<td><code><a
href="http://hpwww.ec-lyon.fr/~vincent/apache/mod_put.html"
>mod_put</a></code></td>
<td class="centered">?</td>
<td>�׽�Ʈ�ȵ�</td>
</tr>
<tr>
<td><code><a href="ftp://hachiman.vidya.com/pub/apache/"
>mod_session</a></code></td>
<td class="centered">-</td>
<td>�׽�Ʈ�ȵ�</td>
</tr>
</table>
</section>
</manualpage>