Bug 3013 - discards a normal .spec-file with text in CP1215
Summary: discards a normal .spec-file with text in CP1215
Alias: None
Product: Sisyphus
Classification: Development
Component: rpm-build (show other bugs)
Version: unstable
Hardware: all Linux
: P2 enhancement
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
Depends on:
Reported: 2003-09-19 00:55 MSD by Ivan Zakharyaschev
Modified: 2006-01-10 02:43 MSK (History)
6 users (show)

See Also:

spec-file with CP1251 -- rpmbuild discards it (6.07 KB, text/plain)
2003-09-19 00:57 MSD, Ivan Zakharyaschev
no flags Details
rpmbuild accepts it (5.58 KB, text/plain)
2003-09-19 00:58 MSD, Ivan Zakharyaschev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2003-09-19 00:55:23 MSD

The difference between the 2 files is the Rusian translation. Here is the effect:

[imz@altair imz]$ rpm -bE urlview.spec  | head
ошибка: Файл /user/imz/urlview.spec не похож на файл спецификации.
[imz@altair imz]$ rpm -bE urlview-test.spec  | head

Name: urlview
Version: 0.9
Release: ipl8mdk

Group: Networking/Other
[imz@altair imz]$
Comment 1 Ivan Zakharyaschev 2003-09-19 00:57:08 MSD
Created attachment 276 [details]
spec-file with CP1251 -- rpmbuild discards it
Comment 2 Ivan Zakharyaschev 2003-09-19 00:58:04 MSD
Created attachment 277 [details]
rpmbuild accepts it
Comment 3 Ivan Zakharyaschev 2003-09-19 00:59:17 MSD
I wish the error msg from rpmbuild would give more info: why the file is bad.
Comment 4 at@altlinux.org 2003-09-19 15:16:48 MSD
256 leading characters of specfile should be ASCII characters.  Otherwise, rpm
behaviour may vary depending on locale settings.
Comment 5 Ivan Zakharyaschev 2003-09-19 22:28:40 MSD
I think, rpm should report an explanation, perhaps the one you gave.
Comment 6 Dmitry V. Levin 2003-09-22 00:40:41 MSD
Comment from at@ is quite correct, see rpm-4_0/build.c:isSpecFile() for details. 
Could you suggest exact message from rpmbuild instead of current 
"File %s does not appear to be a specfile.", please? 
Comment 7 Dmitry V. Levin 2006-01-10 02:43:41 MSK
I see no problem here.