diff options
author | rubidium <rubidium@openttd.org> | 2010-05-20 15:36:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-05-20 15:36:44 +0000 |
commit | 9d29c54b03ab1b8c3860885fa2ec2706c1dcf6fa (patch) | |
tree | d9d4213caa1664327b18cc073ea2c429f850cdeb /src/strgen | |
parent | 8d4bb2285cec39c62d6e62b8d6bcd9c0b6cd786d (diff) | |
download | openttd-9d29c54b03ab1b8c3860885fa2ec2706c1dcf6fa.tar.xz |
(svn r19867) -Change: use non-breaking spaces for currency pre-/postfixes.
Diffstat (limited to 'src/strgen')
-rw-r--r-- | src/strgen/strgen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp index bfcc8c8a8..d71f545a8 100644 --- a/src/strgen/strgen.cpp +++ b/src/strgen/strgen.cpp @@ -536,13 +536,13 @@ static void HandlePragma(char *str) } } else if (!memcmp(str, "digitsep ", 9)) { str += 9; - strecpy(_lang_digit_group_separator, strcmp(str, "{NBSP}") == 0 ? "\xC2\xA0" : str, lastof(_lang_digit_group_separator)); + strecpy(_lang_digit_group_separator, strcmp(str, "{NBSP}") == 0 ? NBSP : str, lastof(_lang_digit_group_separator)); } else if (!memcmp(str, "digitsepcur ", 12)) { str += 12; - strecpy(_lang_digit_group_separator_currency, strcmp(str, "{NBSP}") == 0 ? "\xC2\xA0" : str, lastof(_lang_digit_group_separator_currency)); + strecpy(_lang_digit_group_separator_currency, strcmp(str, "{NBSP}") == 0 ? NBSP : str, lastof(_lang_digit_group_separator_currency)); } else if (!memcmp(str, "decimalsep ", 11)) { str += 11; - strecpy(_lang_digit_decimal_separator, strcmp(str, "{NBSP}") == 0 ? "\xC2\xA0" : str, lastof(_lang_digit_decimal_separator)); + strecpy(_lang_digit_decimal_separator, strcmp(str, "{NBSP}") == 0 ? NBSP : str, lastof(_lang_digit_decimal_separator)); } else if (!memcmp(str, "winlangid ", 10)) { const char *buf = str + 10; long langid = strtol(buf, NULL, 16); |