Project

General

Profile

Bug #570 » patch_main_with_auto_region.c.txt

patch for file main.c to add a few necessary TLDs, and handle auto-* files - Mossroy Mossroy, 2011-07-02 18:06

 
1
281a282
2
>   {"auto", "--Generic--"},
3
284a286
4
>   {"ax", "Aland Islands"},
5
285a288,289
6
>   {"br", "Brazil"},
7
>   {"ca", "Canada"},
8
309a314
9
>   {"si", "Slovenia"},
10
370,373c375,384
11
<     displayname = name + 3;
12
<     buf[0] = name[0];
13
<     buf[1] = name[1];
14
<     buf[2] = 0;
15
---
16
>     l = 0;
17
>     c = 0;
18
>     while(*name && c != '-') {
19
>       c = *name++;
20
>       if (c != '-') {
21
>         buf[l++] = c;
22
>       }
23
>     }
24
>     buf[l] = 0;
25
>     displayname = name;
(3-3/4)