[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48713] trunk/blender/source/blender: increase file browser title length for multibyte translations and use utf8 copy for it

Sv. Lockal lockalsash at gmail.com
Sat Jul 7 16:58:41 CEST 2012


Revision: 48713
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48713
Author:   lockal
Date:     2012-07-07 14:58:40 +0000 (Sat, 07 Jul 2012)
Log Message:
-----------
increase file browser title length  for multibyte translations and use utf8 copy for it

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_file/filesel.c
    trunk/blender/source/blender/makesdna/DNA_space_types.h

Modified: trunk/blender/source/blender/editors/space_file/filesel.c
===================================================================
--- trunk/blender/source/blender/editors/space_file/filesel.c	2012-07-07 14:28:49 UTC (rev 48712)
+++ trunk/blender/source/blender/editors/space_file/filesel.c	2012-07-07 14:58:40 UTC (rev 48713)
@@ -117,7 +117,7 @@
 		const short is_directory = (RNA_struct_find_property(op->ptr, "directory") != NULL);
 		const short is_relative_path = (RNA_struct_find_property(op->ptr, "relative_path") != NULL);
 
-		BLI_strncpy(params->title, RNA_struct_ui_name(op->type->srna), sizeof(params->title));
+		BLI_strncpy_utf8(params->title, RNA_struct_ui_name(op->type->srna), sizeof(params->title));
 
 		if (RNA_struct_find_property(op->ptr, "filemode"))
 			params->type = RNA_int_get(op->ptr, "filemode");

Modified: trunk/blender/source/blender/makesdna/DNA_space_types.h
===================================================================
--- trunk/blender/source/blender/makesdna/DNA_space_types.h	2012-07-07 14:28:49 UTC (rev 48712)
+++ trunk/blender/source/blender/makesdna/DNA_space_types.h	2012-07-07 14:58:40 UTC (rev 48713)
@@ -518,7 +518,7 @@
 
 /* Config and Input for File Selector */
 typedef struct FileSelectParams {
-	char title[32]; /* title, also used for the text of the execute button */
+	char title[96]; /* title, also used for the text of the execute button */
 	char dir[1056]; /* directory, FILE_MAX_LIBEXTRA, 1024 + 32, this is for extreme case when 1023 length path
 	                 * needs to be linked in, where foo.blend/Armature need adding  */
 	char file[256]; /* file */




More information about the Bf-blender-cvs mailing list