Issue 28982 - Improve file url conversion capabilities of sal
Summary: Improve file url conversion capabilities of sal
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: 680m36
Hardware: All All
: P3 Trivial (vote)
Target Milestone: AOO PleaseHelp
Assignee: Stephan Bergmann
QA Contact: issues@udk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-10 10:42 UTC by tino.rachui
Modified: 2009-10-19 12:37 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description tino.rachui 2004-05-10 10:42:56 UTC
OpenOffice.org file URLs are UTF8 encoded. Currently the OOo system abstraction
layer (sal) uses the current thread text encoding (osl_getThreadTextEncoding) in
order to convert file names received from the system interface to such URLs and
vice versa.  Under certain environments like Gnome for instance it is wrong to
do this because these environments use a fixed encoding for path names, e.g.
UTF8.  A few new sal functions are necessary to respect this fact, e.g.
osl_setFileURLEncoding, osl_getFileURLEncoding. During startup of OOo when the
environment in which OOo runs is known the respective file URL encoding must be set.
Comment 1 tino.rachui 2004-05-10 10:44:51 UTC
@TRA: See also #i25416# and #i16281#
Comment 2 tino.rachui 2004-05-10 11:59:48 UTC
@TRA: Remember to improve the error handling of sal in case conversion errors
happen. 
Comment 3 tino.rachui 2004-07-15 11:15:05 UTC
@TRA: sal should maybe also handle broken Java file URLs (file:/...) containing
only a single slash. Inform AS when starting this task.
Comment 4 tino.rachui 2004-07-28 18:49:36 UTC
To risky to be fixed in this late stage of the OOo2.0 time line. Will be fixed
immediately with the start of the OOo3.0 development cycle.
Comment 5 tino.rachui 2005-06-13 12:26:18 UTC
Reassigned for change of responsibilities sake.
Comment 6 kai.sommerfeld 2009-10-16 12:34:30 UTC
sb: Can you please have a look.
Comment 7 Stephan Bergmann 2009-10-19 12:34:59 UTC
For the different encodings used within file URLs, see the
com.sun.star.uri.ExternalUriReferenceTranslator UNO service.  For the pathnames
corresponding to file URLs, I am not aware of any problems in the OOo code that
exchanges such pathnames with external code.
Comment 8 Stephan Bergmann 2009-10-19 12:36:49 UTC
Please reopen if there *are* any specific problems.
Comment 9 Stephan Bergmann 2009-10-19 12:37:13 UTC
.