- Notifications
You must be signed in to change notification settings - Fork28
Commitd092524
committed
> Here's a patch I added against plperl, originally against beta5, now
> against rc1. It simply checks with GetDatabaseEncoding() if the current> database is in UTF-8, and if so, sets the UTF-8 flag on the arguments> that are passed to perl. This means that it isn't necessary to> utf8::upgrade() every string, as perl has no way of knowing offhand> that a string is UTF-8 -- but postgres does, because the database> encoding is specified, so it makes sense to turn the flag on. You> should also be able to properly manipulate UTF-8 strings now from> plperl as opposed to plperlu, because otherwise you'd have to use> encoding 'utf8' which was not allowed. It could also eliminate some> unexpected bugs if you assume that perl knows the string is unicode.It> is enabled only for perl 5.6 and higher, so earlier versions will not> be affected.>> I have been assured by crab that the patch is quite harmless and will> not break anything. It would be great to see it in 8 final! :-)David Kamholz1 parent0851a6f commitd092524
1 file changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
649 | 650 | | |
650 | 651 | | |
651 | 652 | | |
| 653 | + | |
652 | 654 | | |
653 | 655 | | |
654 | 656 | | |
| |||
688 | 690 | | |
689 | 691 | | |
690 | 692 | | |
691 | | - | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
692 | 698 | | |
693 | 699 | | |
694 | 700 | | |
| |||
1261 | 1267 | | |
1262 | 1268 | | |
1263 | 1269 | | |
| 1270 | + | |
1264 | 1271 | | |
1265 | 1272 | | |
1266 | 1273 | | |
| |||
1283 | 1290 | | |
1284 | 1291 | | |
1285 | 1292 | | |
1286 | | - | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
1287 | 1298 | | |
1288 | 1299 | | |
1289 | 1300 | | |
| |||
0 commit comments
Comments
(0)