lucy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Karman <pe...@peknet.com>
Subject Re: 64-bit linux errors with t/core/032-string_helper.t
Date Tue, 19 Jan 2010 05:30:16 GMT
Marvin Humphrey wrote on 1/18/10 11:05 PM:
> On Mon, Jan 18, 2010 at 10:34:46PM -0600, Peter Karman wrote:
> 
>> alas, that didn't change the output.
> 
> Well, I don't really understand what's going on at this point.
> 

I take some small solace in our mutual confusion. :/

> Changing the test to use an int doesn't address the problem, because the whole
> point of UTF8_SKIP is to use it on header bytes in a UTF-8 sequence, which
> will be unsigned char.

agreed.

> 
> It seems messed up that an unsigned type gets promoted to a negative signed
> type when used as an array subscript.  You're not supposed to use "char" on
> its own as an array subscript, because whether "char" is signed or unsigned is
> implementation defined, but either "signed char" or "unsigned char" are
> allowed.

agreed.

> 
> So the next steps are investigatory.  What are the typedefs for u8_t in
> charmony.h?  

[pkarman@pijdev02:/tmp/ks-trunk/perl]$ grep u8_t charmony.h
typedef unsigned char chy_u8_t;
   #define u8_t chy_u8_t

 > What happens when we swap out u8_t for uint8_t when declaring
 > UTF8_SKIP in StringHelper.bp?  Does uint8_t work as a subscript?
 >

No. Same thing (negative subscripts when > 127).

Here's some more evidence. I added this to the test just for some sanity 
checking. Output below.

     for (i=0, max=255; i < max; i++) {
         printf("i == %d\n", i);
         printf("UTF8_SKIP[%d] == %d\n", i, StrHelp_UTF8_SKIP[i]);
     }
     for (i=0, max=255; i < max; i++) {
         printf("i == %d\n", i);
         printf("UTF8_TRAILING[%d] == %d\n", i, StrHelp_UTF8_TRAILING[i]);
     }
     for (i=0, max=255; i < max; i++) {
         printf("i == %d\n", i);
         printf("UTF8_SKIP[%d] == %d\n", i, StrHelp_UTF8_SKIP[i]);
         printf("UTF8_TRAILING[%d] == %d\n", i, StrHelp_UTF8_TRAILING[i]);
         printf("i == %d\n", i);
     }
     printf("finally: i == %d\n", i);


outputs:

i == 0
UTF8_SKIP[0] == 1
i == 1
UTF8_SKIP[1] == 1
i == 2
UTF8_SKIP[2] == 1
i == 3
UTF8_SKIP[3] == 1
i == 4
UTF8_SKIP[4] == 1
i == 5
UTF8_SKIP[5] == 1
i == 6
UTF8_SKIP[6] == 1
i == 7
UTF8_SKIP[7] == 1
i == 8
UTF8_SKIP[8] == 1
i == 9
UTF8_SKIP[9] == 1
i == 10
UTF8_SKIP[10] == 1
i == 11
UTF8_SKIP[11] == 1
i == 12
UTF8_SKIP[12] == 1
i == 13
UTF8_SKIP[13] == 1
i == 14
UTF8_SKIP[14] == 1
i == 15
UTF8_SKIP[15] == 1
i == 16
UTF8_SKIP[16] == 1
i == 17
UTF8_SKIP[17] == 1
i == 18
UTF8_SKIP[18] == 1
i == 19
UTF8_SKIP[19] == 1
i == 20
UTF8_SKIP[20] == 1
i == 21
UTF8_SKIP[21] == 1
i == 22
UTF8_SKIP[22] == 1
i == 23
UTF8_SKIP[23] == 1
i == 24
UTF8_SKIP[24] == 1
i == 25
UTF8_SKIP[25] == 1
i == 26
UTF8_SKIP[26] == 1
i == 27
UTF8_SKIP[27] == 1
i == 28
UTF8_SKIP[28] == 1
i == 29
UTF8_SKIP[29] == 1
i == 30
UTF8_SKIP[30] == 1
i == 31
UTF8_SKIP[31] == 1
i == 32
UTF8_SKIP[32] == 1
i == 33
UTF8_SKIP[33] == 1
i == 34
UTF8_SKIP[34] == 1
i == 35
UTF8_SKIP[35] == 1
i == 36
UTF8_SKIP[36] == 1
i == 37
UTF8_SKIP[37] == 1
i == 38
UTF8_SKIP[38] == 1
i == 39
UTF8_SKIP[39] == 1
i == 40
UTF8_SKIP[40] == 1
i == 41
UTF8_SKIP[41] == 1
i == 42
UTF8_SKIP[42] == 1
i == 43
UTF8_SKIP[43] == 1
i == 44
UTF8_SKIP[44] == 1
i == 45
UTF8_SKIP[45] == 1
i == 46
UTF8_SKIP[46] == 1
i == 47
UTF8_SKIP[47] == 1
i == 48
UTF8_SKIP[48] == 1
i == 49
UTF8_SKIP[49] == 1
i == 50
UTF8_SKIP[50] == 1
i == 51
UTF8_SKIP[51] == 1
i == 52
UTF8_SKIP[52] == 1
i == 53
UTF8_SKIP[53] == 1
i == 54
UTF8_SKIP[54] == 1
i == 55
UTF8_SKIP[55] == 1
i == 56
UTF8_SKIP[56] == 1
i == 57
UTF8_SKIP[57] == 1
i == 58
UTF8_SKIP[58] == 1
i == 59
UTF8_SKIP[59] == 1
i == 60
UTF8_SKIP[60] == 1
i == 61
UTF8_SKIP[61] == 1
i == 62
UTF8_SKIP[62] == 1
i == 63
UTF8_SKIP[63] == 1
i == 64
UTF8_SKIP[64] == 1
i == 65
UTF8_SKIP[65] == 1
i == 66
UTF8_SKIP[66] == 1
i == 67
UTF8_SKIP[67] == 1
i == 68
UTF8_SKIP[68] == 1
i == 69
UTF8_SKIP[69] == 1
i == 70
UTF8_SKIP[70] == 1
i == 71
UTF8_SKIP[71] == 1
i == 72
UTF8_SKIP[72] == 1
i == 73
UTF8_SKIP[73] == 1
i == 74
UTF8_SKIP[74] == 1
i == 75
UTF8_SKIP[75] == 1
i == 76
UTF8_SKIP[76] == 1
i == 77
UTF8_SKIP[77] == 1
i == 78
UTF8_SKIP[78] == 1
i == 79
UTF8_SKIP[79] == 1
i == 80
UTF8_SKIP[80] == 1
i == 81
UTF8_SKIP[81] == 1
i == 82
UTF8_SKIP[82] == 1
i == 83
UTF8_SKIP[83] == 1
i == 84
UTF8_SKIP[84] == 1
i == 85
UTF8_SKIP[85] == 1
i == 86
UTF8_SKIP[86] == 1
i == 87
UTF8_SKIP[87] == 1
i == 88
UTF8_SKIP[88] == 1
i == 89
UTF8_SKIP[89] == 1
i == 90
UTF8_SKIP[90] == 1
i == 91
UTF8_SKIP[91] == 1
i == 92
UTF8_SKIP[92] == 1
i == 93
UTF8_SKIP[93] == 1
i == 94
UTF8_SKIP[94] == 1
i == 95
UTF8_SKIP[95] == 1
i == 96
UTF8_SKIP[96] == 1
i == 97
UTF8_SKIP[97] == 1
i == 98
UTF8_SKIP[98] == 1
i == 99
UTF8_SKIP[99] == 1
i == 100
UTF8_SKIP[100] == 1
i == 101
UTF8_SKIP[101] == 1
i == 102
UTF8_SKIP[102] == 1
i == 103
UTF8_SKIP[103] == 1
i == 104
UTF8_SKIP[104] == 1
i == 105
UTF8_SKIP[105] == 1
i == 106
UTF8_SKIP[106] == 1
i == 107
UTF8_SKIP[107] == 1
i == 108
UTF8_SKIP[108] == 1
i == 109
UTF8_SKIP[109] == 1
i == 110
UTF8_SKIP[110] == 1
i == 111
UTF8_SKIP[111] == 1
i == 112
UTF8_SKIP[112] == 1
i == 113
UTF8_SKIP[113] == 1
i == 114
UTF8_SKIP[114] == 1
i == 115
UTF8_SKIP[115] == 1
i == 116
UTF8_SKIP[116] == 1
i == 117
UTF8_SKIP[117] == 1
i == 118
UTF8_SKIP[118] == 1
i == 119
UTF8_SKIP[119] == 1
i == 120
UTF8_SKIP[120] == 1
i == 121
UTF8_SKIP[121] == 1
i == 122
UTF8_SKIP[122] == 1
i == 123
UTF8_SKIP[123] == 1
i == 124
UTF8_SKIP[124] == 1
i == 125
UTF8_SKIP[125] == 1
i == 126
UTF8_SKIP[126] == 1
i == 127
UTF8_SKIP[127] == 1
i == 128
UTF8_SKIP[128] == 1
i == 129
UTF8_SKIP[129] == 1
i == 130
UTF8_SKIP[130] == 1
i == 131
UTF8_SKIP[131] == 1
i == 132
UTF8_SKIP[132] == 1
i == 133
UTF8_SKIP[133] == 1
i == 134
UTF8_SKIP[134] == 1
i == 135
UTF8_SKIP[135] == 1
i == 136
UTF8_SKIP[136] == 1
i == 137
UTF8_SKIP[137] == 1
i == 138
UTF8_SKIP[138] == 1
i == 139
UTF8_SKIP[139] == 1
i == 140
UTF8_SKIP[140] == 1
i == 141
UTF8_SKIP[141] == 1
i == 142
UTF8_SKIP[142] == 1
i == 143
UTF8_SKIP[143] == 1
i == 144
UTF8_SKIP[144] == 1
i == 145
UTF8_SKIP[145] == 1
i == 146
UTF8_SKIP[146] == 1
i == 147
UTF8_SKIP[147] == 1
i == 148
UTF8_SKIP[148] == 1
i == 149
UTF8_SKIP[149] == 1
i == 150
UTF8_SKIP[150] == 1
i == 151
UTF8_SKIP[151] == 1
i == 152
UTF8_SKIP[152] == 1
i == 153
UTF8_SKIP[153] == 1
i == 154
UTF8_SKIP[154] == 1
i == 155
UTF8_SKIP[155] == 1
i == 156
UTF8_SKIP[156] == 1
i == 157
UTF8_SKIP[157] == 1
i == 158
UTF8_SKIP[158] == 1
i == 159
UTF8_SKIP[159] == 1
i == 160
UTF8_SKIP[160] == 1
i == 161
UTF8_SKIP[161] == 1
i == 162
UTF8_SKIP[162] == 1
i == 163
UTF8_SKIP[163] == 1
i == 164
UTF8_SKIP[164] == 1
i == 165
UTF8_SKIP[165] == 1
i == 166
UTF8_SKIP[166] == 1
i == 167
UTF8_SKIP[167] == 1
i == 168
UTF8_SKIP[168] == 1
i == 169
UTF8_SKIP[169] == 1
i == 170
UTF8_SKIP[170] == 1
i == 171
UTF8_SKIP[171] == 1
i == 172
UTF8_SKIP[172] == 1
i == 173
UTF8_SKIP[173] == 1
i == 174
UTF8_SKIP[174] == 1
i == 175
UTF8_SKIP[175] == 1
i == 176
UTF8_SKIP[176] == 1
i == 177
UTF8_SKIP[177] == 1
i == 178
UTF8_SKIP[178] == 1
i == 179
UTF8_SKIP[179] == 1
i == 180
UTF8_SKIP[180] == 1
i == 181
UTF8_SKIP[181] == 1
i == 182
UTF8_SKIP[182] == 1
i == 183
UTF8_SKIP[183] == 1
i == 184
UTF8_SKIP[184] == 1
i == 185
UTF8_SKIP[185] == 1
i == 186
UTF8_SKIP[186] == 1
i == 187
UTF8_SKIP[187] == 1
i == 188
UTF8_SKIP[188] == 1
i == 189
UTF8_SKIP[189] == 1
i == 190
UTF8_SKIP[190] == 1
i == 191
UTF8_SKIP[191] == 1
i == 192
UTF8_SKIP[192] == 1
i == 193
UTF8_SKIP[193] == 2
i == 194
UTF8_SKIP[194] == 2
i == 195
UTF8_SKIP[195] == 2
i == 196
UTF8_SKIP[196] == 2
i == 197
UTF8_SKIP[197] == 2
i == 198
UTF8_SKIP[198] == 2
i == 199
UTF8_SKIP[199] == 2
i == 200
UTF8_SKIP[200] == 2
i == 201
UTF8_SKIP[201] == 2
i == 202
UTF8_SKIP[202] == 2
i == 203
UTF8_SKIP[203] == 2
i == 204
UTF8_SKIP[204] == 2
i == 205
UTF8_SKIP[205] == 2
i == 206
UTF8_SKIP[206] == 2
i == 207
UTF8_SKIP[207] == 2
i == 208
UTF8_SKIP[208] == 2
i == 209
UTF8_SKIP[209] == 2
i == 210
UTF8_SKIP[210] == 2
i == 211
UTF8_SKIP[211] == 2
i == 212
UTF8_SKIP[212] == 2
i == 213
UTF8_SKIP[213] == 2
i == 214
UTF8_SKIP[214] == 2
i == 215
UTF8_SKIP[215] == 2
i == 216
UTF8_SKIP[216] == 2
i == 217
UTF8_SKIP[217] == 2
i == 218
UTF8_SKIP[218] == 2
i == 219
UTF8_SKIP[219] == 2
i == 220
UTF8_SKIP[220] == 2
i == 221
UTF8_SKIP[221] == 2
i == 222
UTF8_SKIP[222] == 2
i == 223
UTF8_SKIP[223] == 2
i == 224
UTF8_SKIP[224] == 3
i == 225
UTF8_SKIP[225] == 3
i == 226
UTF8_SKIP[226] == 3
i == 227
UTF8_SKIP[227] == 3
i == 228
UTF8_SKIP[228] == 3
i == 229
UTF8_SKIP[229] == 3
i == 230
UTF8_SKIP[230] == 3
i == 231
UTF8_SKIP[231] == 3
i == 232
UTF8_SKIP[232] == 3
i == 233
UTF8_SKIP[233] == 3
i == 234
UTF8_SKIP[234] == 3
i == 235
UTF8_SKIP[235] == 3
i == 236
UTF8_SKIP[236] == 3
i == 237
UTF8_SKIP[237] == 3
i == 238
UTF8_SKIP[238] == 3
i == 239
UTF8_SKIP[239] == 3
i == 240
UTF8_SKIP[240] == 4
i == 241
UTF8_SKIP[241] == 4
i == 242
UTF8_SKIP[242] == 4
i == 243
UTF8_SKIP[243] == 4
i == 244
UTF8_SKIP[244] == 4
i == 245
UTF8_SKIP[245] == 4
i == 246
UTF8_SKIP[246] == 4
i == 247
UTF8_SKIP[247] == 4
i == 248
UTF8_SKIP[248] == 5
i == 249
UTF8_SKIP[249] == 5
i == 250
UTF8_SKIP[250] == 5
i == 251
UTF8_SKIP[251] == 5
i == 252
UTF8_SKIP[252] == 6
i == 253
UTF8_SKIP[253] == 6
i == 254
UTF8_SKIP[254] == 7
i == 0
UTF8_TRAILING[0] == 0
i == 1
UTF8_TRAILING[1] == 0
i == 2
UTF8_TRAILING[2] == 0
i == 3
UTF8_TRAILING[3] == 0
i == 4
UTF8_TRAILING[4] == 0
i == 5
UTF8_TRAILING[5] == 0
i == 6
UTF8_TRAILING[6] == 0
i == 7
UTF8_TRAILING[7] == 0
i == 8
UTF8_TRAILING[8] == 0
i == 9
UTF8_TRAILING[9] == 0
i == 10
UTF8_TRAILING[10] == 0
i == 11
UTF8_TRAILING[11] == 0
i == 12
UTF8_TRAILING[12] == 0
i == 13
UTF8_TRAILING[13] == 0
i == 14
UTF8_TRAILING[14] == 0
i == 15
UTF8_TRAILING[15] == 0
i == 16
UTF8_TRAILING[16] == 0
i == 17
UTF8_TRAILING[17] == 0
i == 18
UTF8_TRAILING[18] == 0
i == 19
UTF8_TRAILING[19] == 0
i == 20
UTF8_TRAILING[20] == 0
i == 21
UTF8_TRAILING[21] == 0
i == 22
UTF8_TRAILING[22] == 0
i == 23
UTF8_TRAILING[23] == 0
i == 24
UTF8_TRAILING[24] == 0
i == 25
UTF8_TRAILING[25] == 0
i == 26
UTF8_TRAILING[26] == 0
i == 27
UTF8_TRAILING[27] == 0
i == 28
UTF8_TRAILING[28] == 0
i == 29
UTF8_TRAILING[29] == 0
i == 30
UTF8_TRAILING[30] == 0
i == 31
UTF8_TRAILING[31] == 0
i == 32
UTF8_TRAILING[32] == 0
i == 33
UTF8_TRAILING[33] == 0
i == 34
UTF8_TRAILING[34] == 0
i == 35
UTF8_TRAILING[35] == 0
i == 36
UTF8_TRAILING[36] == 0
i == 37
UTF8_TRAILING[37] == 0
i == 38
UTF8_TRAILING[38] == 0
i == 39
UTF8_TRAILING[39] == 0
i == 40
UTF8_TRAILING[40] == 0
i == 41
UTF8_TRAILING[41] == 0
i == 42
UTF8_TRAILING[42] == 0
i == 43
UTF8_TRAILING[43] == 0
i == 44
UTF8_TRAILING[44] == 0
i == 45
UTF8_TRAILING[45] == 0
i == 46
UTF8_TRAILING[46] == 0
i == 47
UTF8_TRAILING[47] == 0
i == 48
UTF8_TRAILING[48] == 0
i == 49
UTF8_TRAILING[49] == 0
i == 50
UTF8_TRAILING[50] == 0
i == 51
UTF8_TRAILING[51] == 0
i == 52
UTF8_TRAILING[52] == 0
i == 53
UTF8_TRAILING[53] == 0
i == 54
UTF8_TRAILING[54] == 0
i == 55
UTF8_TRAILING[55] == 0
i == 56
UTF8_TRAILING[56] == 0
i == 57
UTF8_TRAILING[57] == 0
i == 58
UTF8_TRAILING[58] == 0
i == 59
UTF8_TRAILING[59] == 0
i == 60
UTF8_TRAILING[60] == 0
i == 61
UTF8_TRAILING[61] == 0
i == 62
UTF8_TRAILING[62] == 0
i == 63
UTF8_TRAILING[63] == 0
i == 64
UTF8_TRAILING[64] == 0
i == 65
UTF8_TRAILING[65] == 0
i == 66
UTF8_TRAILING[66] == 0
i == 67
UTF8_TRAILING[67] == 0
i == 68
UTF8_TRAILING[68] == 0
i == 69
UTF8_TRAILING[69] == 0
i == 70
UTF8_TRAILING[70] == 0
i == 71
UTF8_TRAILING[71] == 0
i == 72
UTF8_TRAILING[72] == 0
i == 73
UTF8_TRAILING[73] == 0
i == 74
UTF8_TRAILING[74] == 0
i == 75
UTF8_TRAILING[75] == 0
i == 76
UTF8_TRAILING[76] == 0
i == 77
UTF8_TRAILING[77] == 0
i == 78
UTF8_TRAILING[78] == 0
i == 79
UTF8_TRAILING[79] == 0
i == 80
UTF8_TRAILING[80] == 0
i == 81
UTF8_TRAILING[81] == 0
i == 82
UTF8_TRAILING[82] == 0
i == 83
UTF8_TRAILING[83] == 0
i == 84
UTF8_TRAILING[84] == 0
i == 85
UTF8_TRAILING[85] == 0
i == 86
UTF8_TRAILING[86] == 0
i == 87
UTF8_TRAILING[87] == 0
i == 88
UTF8_TRAILING[88] == 0
i == 89
UTF8_TRAILING[89] == 0
i == 90
UTF8_TRAILING[90] == 0
i == 91
UTF8_TRAILING[91] == 0
i == 92
UTF8_TRAILING[92] == 0
i == 93
UTF8_TRAILING[93] == 0
i == 94
UTF8_TRAILING[94] == 0
i == 95
UTF8_TRAILING[95] == 0
i == 96
UTF8_TRAILING[96] == 0
i == 97
UTF8_TRAILING[97] == 0
i == 98
UTF8_TRAILING[98] == 0
i == 99
UTF8_TRAILING[99] == 0
i == 100
UTF8_TRAILING[100] == 0
i == 101
UTF8_TRAILING[101] == 0
i == 102
UTF8_TRAILING[102] == 0
i == 103
UTF8_TRAILING[103] == 0
i == 104
UTF8_TRAILING[104] == 0
i == 105
UTF8_TRAILING[105] == 0
i == 106
UTF8_TRAILING[106] == 0
i == 107
UTF8_TRAILING[107] == 0
i == 108
UTF8_TRAILING[108] == 0
i == 109
UTF8_TRAILING[109] == 0
i == 110
UTF8_TRAILING[110] == 0
i == 111
UTF8_TRAILING[111] == 0
i == 112
UTF8_TRAILING[112] == 0
i == 113
UTF8_TRAILING[113] == 0
i == 114
UTF8_TRAILING[114] == 0
i == 115
UTF8_TRAILING[115] == 0
i == 116
UTF8_TRAILING[116] == 0
i == 117
UTF8_TRAILING[117] == 0
i == 118
UTF8_TRAILING[118] == 0
i == 119
UTF8_TRAILING[119] == 0
i == 120
UTF8_TRAILING[120] == 0
i == 121
UTF8_TRAILING[121] == 0
i == 122
UTF8_TRAILING[122] == 0
i == 123
UTF8_TRAILING[123] == 0
i == 124
UTF8_TRAILING[124] == 0
i == 125
UTF8_TRAILING[125] == 0
i == 126
UTF8_TRAILING[126] == 0
i == 127
UTF8_TRAILING[127] == 0
i == 128
UTF8_TRAILING[128] == 7
i == 129
UTF8_TRAILING[129] == 7
i == 130
UTF8_TRAILING[130] == 7
i == 131
UTF8_TRAILING[131] == 7
i == 132
UTF8_TRAILING[132] == 7
i == 133
UTF8_TRAILING[133] == 7
i == 134
UTF8_TRAILING[134] == 7
i == 135
UTF8_TRAILING[135] == 7
i == 136
UTF8_TRAILING[136] == 7
i == 137
UTF8_TRAILING[137] == 7
i == 138
UTF8_TRAILING[138] == 7
i == 139
UTF8_TRAILING[139] == 7
i == 140
UTF8_TRAILING[140] == 7
i == 141
UTF8_TRAILING[141] == 7
i == 142
UTF8_TRAILING[142] == 7
i == 143
UTF8_TRAILING[143] == 7
i == 144
UTF8_TRAILING[144] == 7
i == 145
UTF8_TRAILING[145] == 7
i == 146
UTF8_TRAILING[146] == 7
i == 147
UTF8_TRAILING[147] == 7
i == 148
UTF8_TRAILING[148] == 7
i == 149
UTF8_TRAILING[149] == 7
i == 150
UTF8_TRAILING[150] == 7
i == 151
UTF8_TRAILING[151] == 7
i == 152
UTF8_TRAILING[152] == 7
i == 153
UTF8_TRAILING[153] == 7
i == 154
UTF8_TRAILING[154] == 7
i == 155
UTF8_TRAILING[155] == 7
i == 156
UTF8_TRAILING[156] == 7
i == 157
UTF8_TRAILING[157] == 7
i == 158
UTF8_TRAILING[158] == 7
i == 159
UTF8_TRAILING[159] == 7
i == 160
UTF8_TRAILING[160] == 7
i == 161
UTF8_TRAILING[161] == 7
i == 162
UTF8_TRAILING[162] == 7
i == 163
UTF8_TRAILING[163] == 7
i == 164
UTF8_TRAILING[164] == 7
i == 165
UTF8_TRAILING[165] == 7
i == 166
UTF8_TRAILING[166] == 7
i == 167
UTF8_TRAILING[167] == 7
i == 168
UTF8_TRAILING[168] == 7
i == 169
UTF8_TRAILING[169] == 7
i == 170
UTF8_TRAILING[170] == 7
i == 171
UTF8_TRAILING[171] == 7
i == 172
UTF8_TRAILING[172] == 7
i == 173
UTF8_TRAILING[173] == 7
i == 174
UTF8_TRAILING[174] == 7
i == 175
UTF8_TRAILING[175] == 7
i == 176
UTF8_TRAILING[176] == 7
i == 177
UTF8_TRAILING[177] == 7
i == 178
UTF8_TRAILING[178] == 7
i == 179
UTF8_TRAILING[179] == 7
i == 180
UTF8_TRAILING[180] == 7
i == 181
UTF8_TRAILING[181] == 7
i == 182
UTF8_TRAILING[182] == 7
i == 183
UTF8_TRAILING[183] == 7
i == 184
UTF8_TRAILING[184] == 7
i == 185
UTF8_TRAILING[185] == 7
i == 186
UTF8_TRAILING[186] == 7
i == 187
UTF8_TRAILING[187] == 7
i == 188
UTF8_TRAILING[188] == 7
i == 189
UTF8_TRAILING[189] == 7
i == 190
UTF8_TRAILING[190] == 7
i == 191
UTF8_TRAILING[191] == 7
i == 192
UTF8_TRAILING[192] == 7
i == 193
UTF8_TRAILING[193] == 1
i == 194
UTF8_TRAILING[194] == 1
i == 195
UTF8_TRAILING[195] == 1
i == 196
UTF8_TRAILING[196] == 1
i == 197
UTF8_TRAILING[197] == 1
i == 198
UTF8_TRAILING[198] == 1
i == 199
UTF8_TRAILING[199] == 1
i == 200
UTF8_TRAILING[200] == 1
i == 201
UTF8_TRAILING[201] == 1
i == 202
UTF8_TRAILING[202] == 1
i == 203
UTF8_TRAILING[203] == 1
i == 204
UTF8_TRAILING[204] == 1
i == 205
UTF8_TRAILING[205] == 1
i == 206
UTF8_TRAILING[206] == 1
i == 207
UTF8_TRAILING[207] == 1
i == 208
UTF8_TRAILING[208] == 1
i == 209
UTF8_TRAILING[209] == 1
i == 210
UTF8_TRAILING[210] == 1
i == 211
UTF8_TRAILING[211] == 1
i == 212
UTF8_TRAILING[212] == 1
i == 213
UTF8_TRAILING[213] == 1
i == 214
UTF8_TRAILING[214] == 1
i == 215
UTF8_TRAILING[215] == 1
i == 216
UTF8_TRAILING[216] == 1
i == 217
UTF8_TRAILING[217] == 1
i == 218
UTF8_TRAILING[218] == 1
i == 219
UTF8_TRAILING[219] == 1
i == 220
UTF8_TRAILING[220] == 1
i == 221
UTF8_TRAILING[221] == 1
i == 222
UTF8_TRAILING[222] == 1
i == 223
UTF8_TRAILING[223] == 1
i == 224
UTF8_TRAILING[224] == 2
i == 225
UTF8_TRAILING[225] == 2
i == 226
UTF8_TRAILING[226] == 2
i == 227
UTF8_TRAILING[227] == 2
i == 228
UTF8_TRAILING[228] == 2
i == 229
UTF8_TRAILING[229] == 2
i == 230
UTF8_TRAILING[230] == 2
i == 231
UTF8_TRAILING[231] == 2
i == 232
UTF8_TRAILING[232] == 2
i == 233
UTF8_TRAILING[233] == 2
i == 234
UTF8_TRAILING[234] == 2
i == 235
UTF8_TRAILING[235] == 2
i == 236
UTF8_TRAILING[236] == 2
i == 237
UTF8_TRAILING[237] == 2
i == 238
UTF8_TRAILING[238] == 2
i == 239
UTF8_TRAILING[239] == 2
i == 240
UTF8_TRAILING[240] == 3
i == 241
UTF8_TRAILING[241] == 3
i == 242
UTF8_TRAILING[242] == 3
i == 243
UTF8_TRAILING[243] == 3
i == 244
UTF8_TRAILING[244] == 3
i == 245
UTF8_TRAILING[245] == 7
i == 246
UTF8_TRAILING[246] == 7
i == 247
UTF8_TRAILING[247] == 7
i == 248
UTF8_TRAILING[248] == 7
i == 249
UTF8_TRAILING[249] == 7
i == 250
UTF8_TRAILING[250] == 7
i == 251
UTF8_TRAILING[251] == 7
i == 252
UTF8_TRAILING[252] == 7
i == 253
UTF8_TRAILING[253] == 7
i == 254
UTF8_TRAILING[254] == 7
i == 0
UTF8_SKIP[0] == 1
UTF8_TRAILING[0] == 0
finally: i == 255

yes, when output both _SKIP and _TRAILING in the same loop, the 3rd loop just 
exits after one iteration.


-- 
Peter Karman  .  http://peknet.com/  .  peter@peknet.com

Mime
View raw message