Changeset 61a056a7eb4b1190384432f31ba63d102e8d0230
- Timestamp:
- 03/20/08 21:20:36
(6 months ago)
- Author:
- André Weber <atmo@videolan.org>
- git-committer:
- André Weber <atmo@videolan.org> 1206044436 +0100
- git-parent:
[bd2b3483d842cb04398d19a5d9b31ceca0e5c26e]
- git-author:
- André Weber <atmo@videolan.org> 1206044268 +0100
- Message:
Fix the handling of string variable - store them as UTF-8 into the config variables, also convert the StringList? values to an UTF8 string before putting them into a QVariant - which seems not to work if created from a "char *" - because later converterd QVariant->toString() isn't UTF8 like expected.
waveout.c forgott to convert string to UTF8 before storing in choice list
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| reb6f43e |
r61a056a |
|
| 1194 | 1194 | == MMSYSERR_NOERROR) |
|---|
| 1195 | 1195 | { |
|---|
| 1196 | | sprintf(sz_dev_name,psz_device_name_fmt,caps.szPname, |
|---|
| | 1196 | sprintf( sz_dev_name, psz_device_name_fmt, caps.szPname, |
|---|
| 1197 | 1197 | caps.wMid, |
|---|
| 1198 | 1198 | caps.wPid |
|---|
| 1199 | 1199 | ); |
|---|
| 1200 | | p_item->ppsz_list[j] = strdup( sz_dev_name ); |
|---|
| | 1200 | p_item->ppsz_list[j] = FromLocaleDup( sz_dev_name ); |
|---|
| 1201 | 1201 | p_item->ppsz_list_text[j] = FromLocaleDup( sz_dev_name ); |
|---|
| 1202 | 1202 | p_item->i_list++; |
|---|
| … | … | |
| 1233 | 1233 | == MMSYSERR_NOERROR) |
|---|
| 1234 | 1234 | { |
|---|
| 1235 | | sprintf(sz_dev_name,psz_device_name_fmt,caps.szPname, |
|---|
| | 1235 | sprintf(sz_dev_name, psz_device_name_fmt, caps.szPname, |
|---|
| 1236 | 1236 | caps.wMid, |
|---|
| 1237 | 1237 | caps.wPid |
|---|
| 1238 | 1238 | ); |
|---|
| 1239 | | if(!stricmp(sz_dev_name,psz_device_name)) |
|---|
| 1240 | | return i; |
|---|
| | 1239 | char *psz_temp = FromLocaleDup(sz_dev_name); |
|---|
| | 1240 | |
|---|
| | 1241 | if( !stricmp(psz_temp, psz_device_name) ) |
|---|
| | 1242 | { |
|---|
| | 1243 | LocaleFree( psz_temp ); |
|---|
| | 1244 | return i; |
|---|
| | 1245 | } |
|---|
| | 1246 | LocaleFree( psz_temp ); |
|---|
| 1241 | 1247 | } |
|---|
| 1242 | 1248 | } |
|---|
| r3b4b75a |
r61a056a |
|
| 185 | 185 | qobject_cast<VStringConfigControl *>(this); |
|---|
| 186 | 186 | assert( vscc ); |
|---|
| 187 | | config_PutPsz( p_intf, vscc->getName(), qta( vscc->getValue() ) ); |
|---|
| | 187 | config_PutPsz( p_intf, vscc->getName(), qtu( vscc->getValue() ) ); |
|---|
| 188 | 188 | break; |
|---|
| 189 | 189 | } |
|---|
| … | … | |
| 382 | 382 | p_module_config->pf_update_list(p_this, p_item->psz_name, val, val, NULL); |
|---|
| 383 | 383 | |
|---|
| 384 | | // assume in a×y case that dirty was set to VLC_TRUE |
|---|
| | 384 | // assume in any case that dirty was set to VLC_TRUE |
|---|
| 385 | 385 | // because lazy programmes will use the same callback for |
|---|
| 386 | 386 | // this, like the one behind the refresh push button? |
|---|
| … | … | |
| 467 | 467 | p_module_config->ppsz_list_text[i_index] : |
|---|
| 468 | 468 | p_module_config->ppsz_list[i_index] ), |
|---|
| 469 | | QVariant( p_module_config->ppsz_list[i_index] ) ); |
|---|
| | 469 | QVariant( qfu(p_module_config->ppsz_list[i_index] )) ); |
|---|
| 470 | 470 | if( p_item->value.psz && !strcmp( p_module_config->value.psz, |
|---|
| 471 | 471 | p_module_config->ppsz_list[i_index] ) ) |
|---|