¡¹ ¬[³]²Å餤¤åªº BBS ¯¸ ¡¹


  ¤@¡BÁcÅé¥N½X -> ²Åé¥N½X
  ¤G¡B³B²z Big5 µ²§À¬O \ ªº¦r
  ¤T¡B¥Î»y²§°Ê
  ¥|¡BÂà«Hµ{¦¡
  ¤­¡B¦r¶°³]©w


    ¥»¤å¥ó¬O¼gµ¹­n¦w¸Ë itoc ©ÒºûÅ@ªº bbs µ{¦¡ª©¥»©Ò¨Ï¥Îªº¡A¨Ã¤£¾A¥Î
  ¨ä¥L bbs ª©¥»¡C

  
  ¤@¡BÁcÅé¥N½X -> ²Åé¥N½X

    ³o³¡¤À¥i¥H¾a¤@¨Ç³n¥ó¨Ó§¹¦¨¡A¨Ò¦p FreeBSD ¤U¥Î autogb¡A¨Ã°t¦X¤@­Ó¤p¤pªº
  script ¨Ó§¹¦¨¡C

#!/bin/sh

# filelist ¸Ì­±¼gµÛ©Ò¦³Àɮ׸ô®|
filelist="xx.c xx.h";

# ÁcÅé->²Åé
for i in $filelist
do
  autogb < $i > $i.new;
  mv -f $i.new $i
done

  
  ¤G¡B³B²z Big5 µ²§À¬O \ ªº¦r

    ¢\ £\ ¤\ ¥\ ¦\ §\ ¨\ ©\ ª\ «\ ¬\ ­\ ®\ ¯\ °\ ±\ ²\ ³\ ´\ µ\
    ¶\ ·\ ¸\ ¹\ º\ »\ ¼\ ½\ ¾\ ¿\ À\ Á\ Â\ Ã\ Ä\ Å\ Æ\ Ç\ È\ É\
    Ê\ Ë\ Ì\ Í\ Î\ Ï\ Ð\ Ñ\ Ò\ Ó\ Ô\ Õ\ Ö\ ×\ Ø\ Ù\ Ú\ Û\ Ü\ Ý\
    Þ\ ß\ à\ á\ â\ ã\ ä\ å\ æ\ ç\ è\ é\ ê\ ë\ ì\ í\ î\ ï\ ð\ ñ\
    ò\ ó\ ô\ õ\ ö\ ÷\ ø\ ù\

    ¥H¤W³o¨Ç¦r¦b Big5 ¤¤µ²§À¬O '\'¡A¾É­P¦b big5->gb ®É·|Åý¥N½X¦h¥X '\'¡A
  ½Ð¤â°Ê±N¥¦­Ì§R°£¡C

  
  ¤T¡B¥Î»y²§°Ê

    ¨â©¤¦³¨Ç¥Î»y¤£¤Ó¬Û¦P¡A´N±o¤@¤@¤â°Ê½Õ¾ã¡C

  
  ¥|¡BÂà«Hµ{¦¡

    Âà«Hªº³¡¤À­n°µ¤@¨Ç¤pÅÜ°Ê¡A§ï¦¨¥H¤U³o¼Ë¥H«á´N¥i¥Hª½±µ¸ò big5 ªº
  newsgroup Âà«H¡C

: src/innbbsd/rec_article.c receive_article()

-         if (*nf->charset == 'g')
-         {
-           gb2b5(BODY);
-           gb2b5(FROM);
-           gb2b5(SUBJECT);
-           gb2b5(SITE);
-         }
+         if (*nf->charset == 'b')
+         {
+           b52gb(BODY);
+           b52gb(FROM);
+           b52gb(SUBJECT);
+           b52gb(SITE);
+         }

: src/innbbsd/bbslink.c post_article()

- if (*sover->charset == 'g')
- {
-   b52gb(BODY);
-   b52gb(sover->from);
-   b52gb(sover->subject);
-   b52gb(MYSITE);
- }
+ if (*sover->charset == 'b')
+ {
+   gb2b5(BODY);
+   gb2b5(sover->from);
+   gb2b5(sover->subject);
+   gb2b5(MYSITE);
+ }

  
  ¤­¡B¦r¶°³]©w

    §ï config.h ¤¤ªº MYCHARSET ¬° "gb2312" ©Î¨ä¥L¡C

--
                                                    ¥æ¤j¹q¤l §ù¦t°a
                               E-Mail: itoc.bbs@bbs.tnfsh.tn.edu.tw
                           WWW: http://home.pchome.com.tw/soho/itoc