Changeset 2b58a805b907efafbc5ef03347b6c086023806f0
- Timestamp:
- 05/21/08 20:41:52
(4 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1211395312 +0300
- git-parent:
[b15107dacf8ad0e8e51bf4fa32dd7585a98e0d0e]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1211395312 +0300
- Message:
Always print numbers (floats) in American format in vlcrc
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r080a076 |
r2b58a80 |
|
| 34 | 34 | #include <assert.h> |
|---|
| 35 | 35 | #include <limits.h> |
|---|
| | 36 | #include <locale.h> |
|---|
| 36 | 37 | |
|---|
| 37 | 38 | #include "configuration.h" |
|---|
| … | … | |
| 522 | 523 | "###\n### lines beginning with a '#' character are comments\n###\n\n" ); |
|---|
| 523 | 524 | |
|---|
| | 525 | /* Ensure consistent number formatting... */ |
|---|
| | 526 | locale_t loc = newlocale (LC_NUMERIC_MASK, "C", NULL); |
|---|
| | 527 | locale_t baseloc = uselocale (loc); |
|---|
| | 528 | |
|---|
| 524 | 529 | /* Look for the selected module, if NULL then save everything */ |
|---|
| 525 | 530 | for( i_index = 0; i_index < p_list->i_count; i_index++ ) |
|---|
| … | … | |
| 628 | 633 | |
|---|
| 629 | 634 | vlc_list_release( p_list ); |
|---|
| | 635 | if (loc != (locale_t)0) |
|---|
| | 636 | { |
|---|
| | 637 | uselocale (baseloc); |
|---|
| | 638 | freelocale (loc); |
|---|
| | 639 | } |
|---|
| 630 | 640 | |
|---|
| 631 | 641 | /* |
|---|