/usr/share/doc/HOWTO/ja-html/Pilot-HOWTO-6.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Pilot HOWTO: $BLu<T$N>!<j$JIUO?(B</TITLE>
<LINK HREF="Pilot-HOWTO-7.html" REL=next>
<LINK HREF="Pilot-HOWTO-5.html" REL=previous>
<LINK HREF="Pilot-HOWTO.html#toc6" REL=contents>
</HEAD>
<BODY>
<A HREF="Pilot-HOWTO-7.html">$B<!$N%Z!<%8(B</A>
<A HREF="Pilot-HOWTO-5.html">$BA0$N%Z!<%8(B</A>
<A HREF="Pilot-HOWTO.html#toc6">$BL\<!$X(B</A>
<HR>
<H2><A NAME="s6">6. $BLu<T$N>!<j$JIUO?(B</A></H2>
<P>pilot-link0.8.9 $B$N(B read-ical.c $B$GF|K\8l$rDL$9$?$a$N$$$$$+$2$s$J%Q%C%A(B
$B0J2<$NFbMF$r(B 'diffs' $B$H$$$&%U%!%$%k$K%;!<%V$7$F!"(Bpilot-link0.8.9 $B$N(B
$B%G%#%l%/%H%j$G(B (csh $B$^$?$O(B tcsh $B$+$i(B)
<P>
<BLOCKQUOTE><CODE>
<PRE>
patch <diffs |& tee patch.log
</PRE>
</CODE></BLOCKQUOTE>
<P>$B$H<B9T$7$F$/$@$5$$!#(B
$B$$$$$+$2$s$J$b$N$J$N$GF0:nJ]>Z$O$G$-$^$;$s$7!"(Bon your own risk $B$G(B
$B9T$C$F$/$@$5$$!#(B
($B$=$b$=$b!"%*%j%8%J%k%=!<%9$G8@$&$H$3$m$N(B 0x95 - bullet $B$H$$$&$N$,(B
$B2?<T$N$+$o$+$C$F$$$J$$>uBV$GL5M}LpM}(B SJIS $B$rDL$7$F$$$^$9$N$G!#(B)
<P>
<HR>
<PRE>
==== cut here ==== cut here ==== cut here ==== cut here ====
*** read-ical.c-dist Wed Jan 21 23:18:12 1998
--- read-ical.c Thu Jan 22 01:55:44 1998
***************
*** 15,27 ****
#include "pi-datebook.h"
#include "pi-dlp.h"
char * tclquote(char * in)
{
static char * buffer = 0;
char * out;
! char * pos;
int len;
!
/* Skip leading bullet (and any whitespace after) */
if (in[0] == '\x95') {
++in;
--- 15,33 ----
#include "pi-datebook.h"
#include "pi-dlp.h"
+ #define isSjis1stByte(c) \
+ (((c) >= 0x81 && (c) <= 0x9f) || ((c) >= 0xe0))
+
+
char * tclquote(char * in)
{
static char * buffer = 0;
char * out;
! unsigned char * pos;
int len;
! int inkanji = 0;
!
! #if 0
/* Skip leading bullet (and any whitespace after) */
if (in[0] == '\x95') {
++in;
***************
*** 29,60 ****
++in;
}
}
! len = 3;
! pos = in;
! while(*pos) {
! if((*pos == '\\') || (*pos == '"') || (*pos == '[') || (*pos == '{') || (*pos == '$'))
! len++;
! len++;
! pos++;
! }
! if (buffer)
! free(buffer);
! buffer = (char*)malloc(len);
! out = buffer;
!
! pos = in;
! *out++ = '"';
! while(*pos) {
! if((*pos == '\\') || (*pos == '"') || (*pos == '[') || (*pos == '{') || (*pos == '$'))
! *out++ = '\\';
! *out++=*pos++;
! }
! *out++ = '"';
! *out++ = '\0';
! return buffer;
}
static void Usage(char *progname)
--- 35,78 ----
++in;
}
}
+ #endif
! len = 3;
! pos = in;
! while(*pos) {
! if (!inkanji && ((*pos == '\\') || (*pos == '"') || (*pos == '[')
! || (*pos == '{') || (*pos == '$')))
! len++;
! if (inkanji)
! inkanji = 0;
! else if (isSjis1stByte(*pos))
! inkanji = 1;
! len++;
! pos++;
! }
! if (buffer)
! free(buffer);
! buffer = (char*)malloc(len);
! out = buffer;
!
! pos = in;
! *out++ = '"';
! inkanji = 0;
! while(*pos) {
! if (!inkanji && ((*pos == '\\') || (*pos == '"') || (*pos == '[')
! || (*pos == '{') || (*pos == '$')))
! *out++ = '\\';
! if (inkanji)
! inkanji = 0;
! else if (isSjis1stByte(*pos))
! inkanji = 1;
! *out++ = *pos++;
! }
! *out++ = '"';
! *out++ = '\0';
! return buffer;
}
static void Usage(char *progname)
</PRE>
<HR>
<P>
<P>
<HR>
<A HREF="Pilot-HOWTO-7.html">$B<!$N%Z!<%8(B</A>
<A HREF="Pilot-HOWTO-5.html">$BA0$N%Z!<%8(B</A>
<A HREF="Pilot-HOWTO.html#toc6">$BL\<!$X(B</A>
</BODY>
</HTML>
|