Incorporate Debian patch for icosmesh in other locales
parent
134b07bc09
commit
d8b75e9120
|
@ -23,6 +23,7 @@ obj.win.spk
|
||||||
obj.spk.dbg
|
obj.spk.dbg
|
||||||
obj.win.spk.dbg
|
obj.win.spk.dbg
|
||||||
AddOns/
|
AddOns/
|
||||||
|
tools/icosmesh/obj
|
||||||
|
|
||||||
# Debug output
|
# Debug output
|
||||||
/core
|
/core
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
Tool to generate subdivided icosahedron mesh data.
|
Tool to generate subdivided icosahedron mesh data.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#import <locale.h>
|
||||||
#import <stdio.h>
|
#import <stdio.h>
|
||||||
#import "icosmesh.h"
|
#import "icosmesh.h"
|
||||||
#import "JAIcosTriangle.h"
|
#import "JAIcosTriangle.h"
|
||||||
|
@ -131,6 +132,15 @@ int main (int argc, const char * argv[])
|
||||||
*/
|
*/
|
||||||
(void)[NSAutoreleasePool new];
|
(void)[NSAutoreleasePool new];
|
||||||
|
|
||||||
|
/* Let printf ignore local number formatting conventions. */
|
||||||
|
/* For example, use a dot as decimal separator. */
|
||||||
|
if (setlocale (LC_NUMERIC, "C") == NULL)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "Failed to set locale.\n");
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
FILE *header = fopen(kFileName ".h", "w");
|
FILE *header = fopen(kFileName ".h", "w");
|
||||||
FILE *source = fopen(kFileName ".c", "w");
|
FILE *source = fopen(kFileName ".c", "w");
|
||||||
if (header == NULL || source == NULL)
|
if (header == NULL || source == NULL)
|
||||||
|
|
Loading…
Reference in New Issue