Changeset 6d85ab85a3f785b8eb86f8f98a58725d9c577e4f
- Timestamp:
- 05/21/08 20:59:16
(3 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1211396356 +0300
- git-parent:
[8d961ec721f5016fbf60f1959a0caafb75a86a16]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1211396115 +0300
- Message:
Parse vlcrc following American standards for numbers
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2b58a80 |
r6d85ab8 |
|
| 183 | 183 | section[0] = '\0'; |
|---|
| 184 | 184 | |
|---|
| | 185 | /* Ensure consistent number formatting... */ |
|---|
| | 186 | locale_t loc = newlocale (LC_NUMERIC_MASK, "C", NULL); |
|---|
| | 187 | locale_t baseloc = uselocale (loc); |
|---|
| | 188 | |
|---|
| 185 | 189 | while (fgets (line, 1024, file) != NULL) |
|---|
| 186 | 190 | { |
|---|
| … | … | |
| 274 | 278 | if( !*psz_option_value ) |
|---|
| 275 | 279 | break; /* ignore empty option */ |
|---|
| 276 | | p_item->value.f = (float)i18n_atof( psz_option_value); |
|---|
| | 280 | p_item->value.f = (float)atof (psz_option_value); |
|---|
| 277 | 281 | p_item->saved.f = p_item->value.f; |
|---|
| 278 | 282 | break; |
|---|
| … | … | |
| 311 | 315 | |
|---|
| 312 | 316 | vlc_list_release( p_list ); |
|---|
| | 317 | if (loc != (locale_t)0) |
|---|
| | 318 | { |
|---|
| | 319 | uselocale (baseloc); |
|---|
| | 320 | freelocale (loc); |
|---|
| | 321 | } |
|---|
| 313 | 322 | |
|---|
| 314 | 323 | vlc_mutex_unlock( &priv->config_lock ); |
|---|