Bug 7075 - Incorrect EPS export when using RU locale
Summary: Incorrect EPS export when using RU locale
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: dia (show other bugs)
Version: unstable
Hardware: all Linux
: P2 major
Assignee: Vitaly Lipatov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-13 14:43 MSD by Fr. Br. George
Modified: 2005-08-26 12:24 MSD (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fr. Br. George 2005-06-13 14:43:08 MSD
When exporting diagram into .eps file, DIA uses current LC_NUMERIC for
generating nombers in PostScript. So, using RU locale produces floating numbers
as this:
1,000 (i. e. comma instead of petiod). PostScript fails on this!
Steps to Reproduce:
1. Create any diagram (e. g. picture.dia)
2. dia picture.dia -e picture.eps
3. gs -q -dBATCH -dNOPAUSE -sDEVICE=bbox picture.eps
Actual Results:  
Error: /undefined in 28,346000
. . .
ESP Ghostscript 7.07.1: Unrecoverable error, exit code 1

$ grep 28.346000 picture.eps    
28,346000 -28,346000 scale


Expected Results:  
2. LC_ALL=C dia picture.dia -e picture.eps
3. gs -q -dBATCH -dNOPAUSE -sDEVICE=bbox picture.eps
%%BoundingBox: 0 0 431 431

$ grep 28.346000 picture.eps 
28.346000 -28.346000 scale
Comment 1 Fr. Br. George 2005-06-13 14:44:12 MSD
It's probably upstream bug so it reproduces under FreeBSD.
Comment 2 Vitaly Lipatov 2005-06-21 22:49:31 MSD
Да, проблема в Апстриме, но самого главного - версии! 
не указано :( 
Да, действительно, присутствует в dia-0.94-alt8cvs20050313 
Comment 3 Vitaly Lipatov 2005-08-01 01:29:04 MSD
fixed in dia-0.94-alt9cvs20050730