Bug 7075

Summary: Incorrect EPS export when using RU locale
Product: Sisyphus Reporter: Fr. Br. George <george>
Component: diaAssignee: Vitaly Lipatov <lav>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: major    
Priority: P2 CC: lav, shrek
Version: unstable   
Hardware: all   
OS: Linux   

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