| 440 | } |
| 441 | |
| 442 | int same_encoding(const char *src, const char *dst) |
| 443 | { |
| 444 | static const char utf8[] = "UTF-8"; |
| 445 | |
| 446 | if (!src) |
| 447 | src = utf8; |
| 448 | if (!dst) |
| 449 | dst = utf8; |
| 450 | if (same_utf_encoding(src, dst)) |
| 451 | return 1; |
| 452 | return !strcasecmp(src, dst); |
| 453 | } |
| 454 | |
| 455 | /* |
| 456 | * Wrapper for fprintf and returns the total number of columns required |
no test coverage detected