· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
CVS Log Message Encoding

CVS ·Î±× ¸Þ½ÃÁö ÀÎÄÚµùÀ» cp949¿¡¼­ utf-8·Î ¹Ù²ãÁÖ´Â ¹æ¹ý

µ¿ÀÏÇÑ CVS ÀúÀå¼Ò¸¦ À©µµ¿ì¿Í ¸®´ª½º¿¡¼­ »ç¿ëÇÒ °æ¿ì¿¡ ·Î±× ¸Þ½ÃÁöÀÇ ÀÎÄÚµùÀÌ ´Þ¶ó¼­ ¹®Á¦°¡ µÇ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. (¹°·Ð ¾î¶² °æ¿ì¿¡µµ ÀÎÄÚµùÀÌ ´Ù¸£¸é ¹®Á¦°ÚÁö¸¸; ) ±×·² ¶§ ´ÙÀ½°ú °°Àº ½ºÅ©¸³Æ®¸¦ ¾²¸é ¸ðµç ·Î±× ¸Þ½ÃÁö¸¦ utf-8·Î ¹Ù²ãÁÝ´Ï´Ù.
#!/usr/bin/python # -*- coding: UTF-8 -*- """ file do_something_about_encoding.py Title: ÀÎÄÚµù ¾î¼±¸Àú¼±¸. Desc: ÆÄÀÏÀÇ ÀÎÄÚµù¿¡ ´ëÇØ ¹º°¥ ÇÏ´Â ÇÁ·Î±×·¥. Author: Son, Kyeong-uk(hey_calm) $Log: CVSLogMessageEncoding,v $ Revision 1.1 2004/11/13 11:14:26 kss 211.104.178.25;;WkPark;; Revision 1.2 2004/07/30 04:37:13 kss 211.63.103.71;;hey;; Revision 1.1 2004/07/29 09:56:04 kss 211.213.198.101;;pyrasis;; Revision 1.6 2004/07/29 09:02:22 hey_calm ·Î±× ¸Þ½ÃÁö º¯°æ È®ÀÎ. Revision 1.5 2004/07/29 08:59:55 hey_calm ·Î±× ¸Þ½ÃÁö¸¦ euc-kr -> utf-8 -> cp949 ¼ø¼­´ë·Î °£ÁÖÇÏ°í ÀÎÄÚµù ÃßÃøÇÔ. Revision 1.4 2004/07/29 08:15:31 hey_calm Revision 1.3 2004/07/29 07:58:32 hey_calm iconv°¡ ½ÇÆÐÇصµ ¿¡·¯ ¸Þ½ÃÁö ÂïÁö ¾Ê°Ô ¹Ù²Þ. Revision 1.2 2004/07/27 06:05:24 hey_calm ÅÇÀ» ½ºÆäÀ̽º·Î ¹Ù²Þ. Revision 1.1 2004/07/27 05:39:57 hey_calm ·Î±× ¸Þ½ÃÁöÀÇ ÀÎÄÚµùÀ» utf-8·Î ¹Ù²ãÁÖ´Â ±â´É ³ÖÀ½. """ import os, sys filename = "" if __name__ == '__main__': if 1 < len(sys.argv): filename = sys.argv[1] file = open(filename, 'r') source = file.read() try: content = unicode(source, "euc-kr").encode("utf-8") except UnicodeError: try: unicode(source, "utf-8").encode("utf-8") content = None except UnicodeError: try: content = unicode(source, "cp949").encode("utf-8") except UnicodeError: content = None if content is not None: file = open(filename, "w") file.write(content) file.close()
pynoos´ÔÀÌ ¸¸µå½Å cvsnotify µîÀÇ ÇÁ·Î±×·¥À» ½áº¸¼Ì´Ù¸é CVSROOT¸¦ üũ¾Æ¿ôÇغ¸¼ÌÀ» °Ì´Ï´Ù. ¸ÕÀú ÇØ´ç ÀúÀå¼ÒÀÇ CVSROOT¸¦ üũ¾Æ¿ôÇϼ¼¿ä. ±×¸®°í ·Î±× Á¤º¸¸¦ °ËÁõÇÒ ¶§ ÀÌ ½ºÅ©¸³Æ®°¡ ºÒ¸®µµ·Ï verifymsg¿¡ ´ÙÀ½°ú °°ÀÌ
... »ý·« # # One thing that should be noted is the the ALL keyword is not # supported. There can be only one entry that matches a given # repository. DEFAULT $CVSROOT/CVSROOT/do_something_about_encoding.py
¸¶Áö¸·¿¡ ÇÑ ÁÙÀ» ³ÖÀ¸¼¼¿ä. ÀÌ »õ·Î ¸¸µç ½ºÅ©¸³Æ®´Â CVSROOT¿¡ ÀÚµ¿À¸·Î üũ¾Æ¿ôµÇ¾î¾ß ÇϹǷΠcheckoutlist ÆÄÀÏÀÇ ¸¶Áö¸·¿¡
... »ý·« # File format: # # [<whitespace>]<filename>[<whitespace><error message>]<end-of-line> # # comment lines begin with '#' do_something_about_encoding.py ·Î±× ¸Þ½ÃÁö ÀÎÄÚµùÀ» ¾î¶»°Ô Á» ÇÏ´Â ÇÁ·Î±×·¥
ÀÌ·¸°Ô ³Ö¾î ÁÖ¼¼¿ä. ÀÚ ÀÌÁ¦, utf-8°ú cp949¸¦ ±âº»À¸·Î »ç¿ëÇÏ´Â °¢°¢ÀÇ ÄÄÇ»ÅÍ¿¡¼­ Ä¿¹ÔÀ» Çغ¾½Ã´Ù. :]

ID
Password
Join
Don't speak about Time, until you have spoken to him.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2004-11-13 20:14:26
Processing time 0.0035 sec