View Issue Details

IDProjectCategoryView StatusLast Update
0002774ScribusOS-PPCOSXpublic2005-11-30 23:40
Reporterjaxx Assigned Toringerc 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformPowerBook 15inch 1.67GhzOSOSXOS Version10.4.2
Product Version1.3.2cvs 
Fixed in Version1.3.2cvs 
Summary0002774: Silently stops at launch during ICC profiles readings (International characters)
DescriptionI had a 19" old-school CRT screen connected and and profiled on my laptop.
After putting libs in the good places, and Scribus somewhere in Application (Crashes bad otherwise), I launched it and after computing fonts for the fisrt time, the splash screen went away, so I launched from a terminal and all I see is that it stops on error 0012288

If I move the file out of the way, it continues.
If I rename it to something very simple, it continues well too !

I suppose this is related either to:
- Me, Because it's barely 9AM on a sunday morning
- GetCMSProfiles reads the file name correctly, but lcms doesn't understand international caracters (darn accents)

Last lines of Terminal Output:
...
GetCMSProfiles: reading profile /Applications/Graphics/Scribus.app/Contents/lib/scribus/profiles//tr01_d50.icm
GetCMSProfile: done
GetCMSProfiles: reading profile /Users/jaxx/Library/ColorSync/Profiles//CPD-E400E ?talonn?.icc
lcms: Error 0012288; File '/Users/jaxx/Library/ColorSync/Profiles/CPD-E400E ?talonn?.icc' not found
JaXXBooK-2:/Applications/Graphics/Scribus.app/Contents jaxx$
Steps To ReproduceHaving a Calibrated Monitor Named with accents, Calibrated in French is "Étalonné"...
Example: "CPD-E400E Étalonné"
Output can be seen when 'bin/scribus' is launched from the terminal
Additional InformationAccents in the Terminal (even 3rd party terminal emulators) are always a hassle... And as a command line user, I'm very frustrated of not being able to type accents sometimes
TagsNo tags attached.
Patch

Relationships

related to 0002215 closedjghali Audit and fix text encoding handling 

Activities

ringerc

2005-10-30 10:00

reporter   ~0007256

The bug is an implicit conversion from unicode to byte string (see 0002215) in ScribusApp::GetCMSProfilesDir(...) at line scribus.cpp:8598 :

     hIn = cmsOpenProfileFromFile(pfad + d[dc], "r");

should be:

     QCString profilePath( QString(pfad + d[dc]).local8Bit() );
     hIn = cmsOpenProfileFromFile( profilePath.data(), "r");

FYI: Error 12288 is 0x3000 . Weird of lcms not to use "%x".

As for typing accents in a terminal, they shouldn't need to be a problem. If they are, you probably need to have a "chat" to Apple. I can use compose keys and dead keys here (Linux, gnome-terminal) to type accented text without problems. That said, I'm unfamiliar with Apple's post-MacOS-9 input method for accented text. In os9 one would use (eg) option-e,e ... which would be fine in a terminal.

ringerc

2005-10-30 10:07

reporter   ~0007257

This should be fixed now (fingers crossed). Please re-test when Andreas gets a chance to generate a new PPC build, and add a note to this bug to confirm whether or not it's fixed.

ringerc

2005-10-30 10:09

reporter   ~0007258

Reminder sent to: avox

Andreas, adding you to the monitor list on this one. If I've correctly identified the problem it should be fixed in CVS now. Look right to you?

ringerc

2005-10-30 10:41

reporter   ~0007259

Fixed a few other cases across the app; all uses of cmsOpenProfileFromFile(...) should now be doing it without mangling text.

It's actually very tempting to try to write a Qt/C++ wrapper around lcms to protect us against this sort of crud.

Issue History

Date Modified Username Field Change
2005-10-30 08:43 jaxx New Issue
2005-10-30 10:00 ringerc Note Added: 0007256
2005-10-30 10:00 ringerc Status new => acknowledged
2005-10-30 10:00 ringerc Category General => PPCOSX
2005-10-30 10:06 ringerc Status acknowledged => assigned
2005-10-30 10:06 ringerc Assigned To => ringerc
2005-10-30 10:07 ringerc Status assigned => resolved
2005-10-30 10:07 ringerc Fixed in Version => 1.3.2cvs
2005-10-30 10:07 ringerc Resolution open => fixed
2005-10-30 10:07 ringerc Note Added: 0007257
2005-10-30 10:08 ringerc Relationship added related to 0002215
2005-10-30 10:09 ringerc Note Added: 0007258
2005-10-30 10:41 ringerc Note Added: 0007259
2005-11-30 23:40 cbradney Status resolved => closed
2014-10-08 18:38 Kunda Category PPCOSX => OS-PPCOSX